SuperdindaDocs
Navigation

OnboardingStepPill

Playground

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

Onboarding Step Pill

boolean

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

Viewport · Desktop

Onboarding Step Pill

Viewport · Phone

Onboarding Step Pill

Props

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

StepPillRootProps

PropTipoPadrãoDescrição
NavViewport—Figma `Viewport`: Desktop shows labels, Phone numbers only. Leave it out to follow the space (inside the App Header, its width).
string—
ReactNode—

StepPillItemProps

PropTipoPadrãoDescrição
StepStatus—Figma `Status`: Done, Current or Upcoming.
string | number—Figma `number`: the step's position.
boolean—Figma `showLabel`. Leave it out to follow the Root's viewport.
string"concluído"A done step's description: "concluído".
ReactElement<unknown, string | React.JSXElementConstructor<any>>—Done steps only: the route back, e.g. `render={<NextLink href="?passo=quem" />}`.
string—
ReactNode—Figma `label`: the step name.

On this page