Skip to main content

TabButtonRenderer

react-mosaic-component


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?

TabCanCloseFunction<T>

index

number

isActive

boolean

mosaicActions

MosaicRootActions<T>

mosaicId

string

onTabClick

() => void

onTabClose?

(tabKey, index) => void

path

MosaicPath

renderTabTitle?

TabTitleRenderer<T>

tabKey

T

tabs

T[]

Returns

React.ReactElement