SuperdindaDocs
Backoffice

Attention

Playground

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

Backoffice / Attention Item

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

Props

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

AttentionItemProps

PropTipoPadrãoDescrição
"attention" | "critical" | "info"—Figma "Severity"; the icon is fixed per severity.
string—The severity in words ("Crítico"), read with the icon; shown as the Status when `status` is set. Never colour or icon alone.
ReactNode—"Renovação de 29 out vai falhar"; two lines at most.
ReactNode—One line of detail, truncated.
ReactNode—"há 2 h".
ReactNode—Figma "showStatus": a Status on the right.
ReactElement<unknown, string | React.JSXElementConstructor<any>>—Where it gets solved, e.g. `render={<NextLink href="/infrastructure/purchases" />}`.
string—

AttentionListProps

PropTipoPadrãoDescrição
ReactNode—"Precisa de você".
number—How many items wait (a warm count next to the title).
ReactNode—"Ver todos" (a ghost Button or Link), right of the title.
string—
ReactNode—Figma SLOT "items": AttentionItems, worst first.

On this page