Tabs organize related content into distinct sections and provide users with a navigational interface to switch between these sections.
selectedIndex and onChange props:defaultValue:disabled prop to the TabListItem component.sm, md, lg and responsive and can be changed by passing the size prop.lg.responsive, the component will be responsive to the viewport.Screen prefix | Screen width | Component size |
|---|---|---|
|
| sm |
|
| md |
|
| lg |
horizontal and vertical.horizontal.vertical prop to change the variant.control prop.TabListItem can have a close icon by passing the deletable prop to the Tab component.TabListItem is hovered or selected.onDelete prop to the Tab component to handle the close icon clicked event.deleteIcon prop to the Tab component.TabPanel will be destroyed. Set destroyOnHidden={false} on Tabs to allow the content to remain rendered.Tabs component follows WAI-ARIA recommendations on accessibility.
Key | Description | Condition |
|---|---|---|
| Focuses and activates next tab that is not disabled |
|
| Focuses and activates previous tab that is not disabled |
|
| Focuses and activates next tab that is not disabled |
|
| Focuses and activates previous tab that is not disabled |
|
| Focuses and activates first tab | |
| Focuses and activates last tab |