Navigation
TabBar
Playground
Um preset por valor do primeiro eixo do Figma. Mude as props; dsState força hover, foco ou pressionado, como na matriz.
Tab Bar
string
number
Variantes, tamanhos e estados
Cada célula é o componente real, marcada com a variante do Figma que reproduz (passe o mouse pra ver o node).
Tab Bar ·
| Tab Bar |
|---|
Props
As props que o arquivo do DS declara. O componente também repassa as do primitivo (base-ui), quando ele tem um.
TabBarProps
| Prop | Tipo | Padrão | Descrição |
|---|---|---|---|
| className? | string | — |
TabBarItemProps
| Prop | Tipo | Padrão | Descrição |
|---|---|---|---|
| icon | ReactNode | — | Figma `Icon`: a 20 px lucide element. |
| current? | boolean | false | The current destination: `aria-current="page"`, foreground colour. |
| badge? | number | — | Figma `showBadge` + `count`: open alerts on "Alertas". Zero hides it. |
| badgeLabel? | string | — | The badge read as the link's description. Default "2 novos". |
| disabled? | boolean | false | Legacy Figma `State=Disabled`; do not use: hide a destination instead. |
| render? | ReactElement<unknown, string | React.JSXElementConstructor<any>> | — | The router's link, e.g. `render={<NextLink href="/familia" />}`. |
| className? | string | — | |
| children | ReactNode | — | Figma `label`: always visible under the icon. |
