Components
Tabs
Tabs are used to navigate between related pages or views while retaining context.
The tab component renders a set of Tab Button components.
import { Tabs } from '@sproutsocial/racine'
Properties
Name | Type | Default | Description | Required? |
---|---|---|---|---|
children | React.Node | |||
onSelect | (string) => void | |||
fullWidth | boolean | Whether or not the tabs should stretch to fill the width of their container | ||
qa | {
[string]: string
} | |||
selectedId | string | ID of the selected tab |
Subcomponents
Tab Button
A tab button must be rendered within an instance of the Tabs
component.
Name | Type | Default | Description | Required? |
---|---|---|---|---|
children | React.Node | |||
id | string | Should be unique among sibling elements |