TabButtonRenderer
react-mosaic-component / TabButtonRenderer
Type Alias: TabButtonRenderer<T>
TabButtonRenderer<
T> = (props) =>React.ReactElement
Defined in: libs/react-mosaic-component/src/lib/types.ts:156
A function that renders the tab button for a tab. If not provided, the DefaultButton will be used.
Type Parameters
T
T extends MosaicKey
Parameters
props
canClose?
index
number
isActive
boolean
mosaicActions
mosaicId
string
onTabClick
() => void
onTabClose?
(tabKey, index) => void
path
renderTabTitle?
tabKey
T
tabs
T[]
Returns
React.ReactElement