tab
v0.88.2arrow_drop_down




















Called on tab change.
Array of objects describing each Menu.Item and Tab.Pane: { menuItem: 'Home’, render: () => <Tab.Pane>Welcome!</Tab.Pane>, } or { menuItem: 'Home’, pane: 'Welcome’, }
A Tab is a hidden section of content activated by a Menu.
A tab pane holds the content of a tab.
Name | Type | Default value | Description |
---|---|---|---|
as | elementType | An element type to render as (string or function). | |
defaultActiveIndex | number | string | The initial activeIndex. | |
activeIndex | number | string | Index of the currently active tab. | |
menu | object | { attached: true, tabular: true } | Shorthand props for the Menu.
tabular, if true, will derive final value from |
menuPosition | 'left' | 'right' | Align vertical menu | |
grid | object | { paneWidth: 12, tabWidth: 4 } | Shorthand props for the Grid. |
onTabChange | function | React’s original SyntheticEvent. | |
panes | {"menuItem":"custom","pane":"custom","render":"function"}[] | Array of objects describing each Menu.Item and Tab.Pane: { menuItem: 'Home’, render: () => <Tab.Pane /> } or { menuItem: 'Home’, pane: ‘Welcome’ } | |
renderActiveOnly | bool | true | A Tab can render only active pane. |
as | elementType | Segment | An element type to render as (string or function). |
active | bool | true | A tab pane can be active. |
children | node | Primary content. | |
className | string | Additional classes. | |
content | custom | Shorthand for primary content. | |
loading | bool | A Tab.Pane can display a loading indicator. |