rc-dock
    Preparing search index...

    Interface TabGroup

    Shared docking behavior and header options for tabs with the same group name.

    interface TabGroup {
        animated?: boolean;
        disableDock?: boolean;
        floatable?: boolean | "singleTab";
        heightFlex?: number;
        maximizable?: boolean;
        moreIcon?: ReactNode;
        newWindow?: boolean;
        panelExtra?: (panel: PanelData, context: DockContext) => ReactElement;
        preferredFloatHeight?: [number, number];
        preferredFloatWidth?: [number, number];
        tabLocked?: boolean;
        widthFlex?: number;
    }
    Index

    Properties

    animated?: boolean

    Former tab-switch animation option.

    No longer supported.

    disableDock?: boolean

    Disable drag targets in the docked layout. Defaults to false.

    floatable?: boolean | "singleTab"

    Allow floating panels; singleTab limits each floating panel to one tab. Enabled for ungrouped tabs by default.

    heightFlex?: number

    Multiplier for panel height growth and shrinkage in vertical layouts.

    maximizable?: boolean

    Show the maximize control. Enabled for ungrouped tabs by default.

    moreIcon?: ReactNode

    Icon for the tab overflow menu.

    newWindow?: boolean

    Allow floating panels to open in separate browser windows. Defaults to false.

    panelExtra?: (panel: PanelData, context: DockContext) => ReactElement

    Render custom content on the right of the header, replacing the default controls.

    Type declaration

    preferredFloatHeight?: [number, number]

    Clamp the initial height of dragged floating panels to [min, max] pixels. Defaults to [50, 500].

    preferredFloatWidth?: [number, number]

    Clamp the initial width of dragged floating panels to [min, max] pixels. Defaults to [100, 600].

    tabLocked?: boolean

    Prevent tabs from being dragged into new panels; moves between matching groups remain allowed. Defaults to false.

    widthFlex?: number

    Multiplier for panel width growth and shrinkage in horizontal layouts.