TabToolbarRenderer
react-mosaic-component / TabToolbarRenderer
Type Alias: TabToolbarRenderer<T>
TabToolbarRenderer<
T> = (props) =>React.ReactElement
Defined in: libs/react-mosaic-component/src/lib/types.ts:174
A function that renders the entire toolbar for a tab group. It receives the props for the tab group and a DraggableTab component for making tabs draggable.
Type Parameters
T
T extends MosaicKey
Parameters
props
activeTabIndex
number
DraggableTab
React.ComponentType<{ children: (dragProps) => React.ReactElement; tabIndex: number; tabKey: T; }>
path
tabs
T[]
Returns
React.ReactElement