Tab
Allows navigation between related sections of content, displaying one section at a time. Can house a variety of patterns, from static content to completion of actions.
Installation
Install
yarn add @iag/chroma-react-ui.components
Import
import { Tab } from '@iag/chroma-react-ui.components';
Accessibility
Accessibility documentation(opens in new window)Default
Example with Icons
Example with Payment Labels
Block
For mobile displays the tabs will stack and the content panels will show below
Properties
Name
Description
- classNamestring
- blockboolean
- onChange((value: string | number) => void) & FormEventHandler<HTMLDivElement>
- initialstringThe id of the intial tab to default open
- idstring