SuperdindaDocs
Account

NotificationItem

One system notice in the Avisos panel (Figma "Notification Item" 192:1979): the severity icon, title, body and how long ago, an unread dot and, when it is about a person, a chevron.

The whole row is the control: opening it marks it read (and goes to the person), so nothing needs a second button. Notices are account, billing, connection and consent, never risk (that lives in Alertas).

<NotificationItem severity="critical" opensSubject title="Não confirmamos o vínculo declarado" body="A checagem não confirmou seu vínculo com a Lia." time={<time dateTime={iso}>há 6 segundos</time>} onClick={open} />

Playground

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

Notification Item

boolean
boolean
string

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

Severity · Critical

ReadDefaultHover
Unread
Read

Severity · Warning

ReadDefaultHover
Unread
Read

Severity · Info

ReadDefaultHover
Unread
Read

Props

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

PropTipoPadrãoDescrição
NotificationSeverity"info"Figma `Severity`.
booleanfalseFigma Read=Read: the dot goes and the words recede (through colour, so the text keeps its contrast).
ReactNode—Figma "Title" (Label/Small).
ReactNode—Figma "Body": one or two sentences.
ReactNode—Figma "When": how long ago, in words. Pass a `<time dateTime="…">`.
booleanfalseFigma `Opens dependent`: the row takes you to the person, so a chevron closes it.
string—Accessible name of the severity icon. Defaults to NOTIFICATION_SEVERITY_LABELS.
string"Não lida"Accessible name of the unread dot. Default "Não lida".
ReactElement<unknown, string | React.JSXElementConstructor<any>>—A route instead of an action (`<NextLink href="/…" />`): it stays a link.
string—
"button" | "reset" | "submit""button"

On this page