- Implementation
- Tab Props
- Tab.List Props
- Tab.Panel Props
Common Examples
Basic Tabs
Tabs are used to separate large blocks of content relevant to the user’s current context. Four components are used to makeup Anvil tabs:Tab, Tab.List, Tab.Button, and Tab.Panel.Notes
- There should always be an equal number of
Tab.ButtonandTab.Panelcomponents. - Values in the
controlsprop of eachTab.Buttoncomponent should match theidof the correspondingTab.Panel.
Changing the Default Tab
By default, the content of theTab.Panel associated to the first Tab.Button will be displayed. To change this behavior, supply the index of the Tab.Button that should be displayed first to the defaultIndex of the parent Tab.React Accessibility
- An Anvil
Tab.Buttoncannot be disabled. - When a
Tab.Buttonhas focus, the left and right arrow keys and enter can be used to navigate tabs.

