SuperdindaDocs
Navigation

PillNav

Playground

Um preset por valor do primeiro eixo do Figma. Mude as props; dsState força hover, foco ou pressionado, como na matriz.

Pill Nav

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).

Type · Dashboard

Type · Onboarding

Pill Nav

Type · Onboarding Phone

Pill Nav

Props

As props que o arquivo do DS declara. O componente também repassa as do primitivo (base-ui), quando ele tem um.

PillNavProps

PropTipoPadrãoDescrição
string—

PillNavItemProps

PropTipoPadrãoDescrição
booleanfalseThe current destination: white pill, `aria-current="page"`.
number—Figma `showBadge` + `count`: open alerts on "Alertas". Zero hides it.
string—The badge read as the link's description. Default "2 novos".
ReactNode—Figma `Leading=Step` (legacy onboarding): a step marker before the label.
booleantrueFigma `Show label`. Off keeps the label for screen readers only.
booleanfalseLegacy Figma `State=Disabled`; do not use: hide a destination instead.
ReactElement<unknown, string | React.JSXElementConstructor<any>>—The router's link, e.g. `render={<NextLink href="/alertas" />}`.
string—
ReactNode—Figma `label`: the destination name.

On this page