@@ -26,6 +26,8 @@ export interface SubView {
2626 title : string ;
2727 /** Optional tooltip shown when hovering over the title/tab */
2828 tooltip ?: string ;
29+ /** Optional icon component displayed before the title in the header. Size is controlled by the container. */
30+ icon ?: ComponentType < { size : number } > ;
2931 /** The component to render for this subview */
3032 component : ComponentType ;
3133 /**
@@ -38,18 +40,18 @@ export interface SubView {
3840 * Only affects vertical layout. Defaults to false.
3941 */
4042 flexGrow ?: boolean ;
41- /**
42- * Minimum height for this section in the proportional layout (in pixels).
43- * Defaults to 100px.
44- */
45- minHeight ?: number ;
4643 /**
4744 * Whether this is the main (primary) subview.
4845 * When true, shows a non-collapsible header with a larger title style.
4946 * The title and `renderHeaderAction` are displayed in the fixed header,
5047 * and the content should not include its own title/actions.
5148 */
5249 main ?: boolean ;
50+ /**
51+ * Optional custom render for the title area of a main subview header.
52+ * When provided, replaces the static title text. Only used when `main` is true.
53+ */
54+ renderTitle ?: ( ) => ReactNode ;
5355 /**
5456 * Whether the section can be collapsed by clicking the header.
5557 * Defaults to true. Forced to false when `main` is true.
@@ -60,6 +62,11 @@ export interface SubView {
6062 * Defaults to false (expanded). Ignored when `main` is true.
6163 */
6264 defaultCollapsed ?: boolean ;
65+ /**
66+ * When true, the header action is always visible instead of only on hover/focus.
67+ * Defaults to false.
68+ */
69+ alwaysShowHeaderAction ?: boolean ;
6370 /**
6471 * Configuration for making the subview resizable when expanded.
6572 * Only affects vertical layout. When set, the section can be resized by dragging its bottom edge.
0 commit comments