Skip to Content
DocumentationIndex Level Animated

Index Level Animated

Same anatomy as Index Level, but colored by specialty and with a ring that sweeps once when the component appears.

Two things differ from IndexLevel:

  • No variant. The colors come from the specialty prop instead.
  • The ring. Prioritário and Alta prevalência sit on a card background with a 2px ring 4px outside the chip. The ring’s gradient sweeps a full turn on mount and then settles at 10% opacity. Média prevalência and Baixa prevalência have no ring — they carry the specialty’s soft background instead.
SpecialtyTextRingSoft background (sm / md)
defaultprimary-foregroundprimary-background-fillgray-background-soft-muted
cmcm-foregroundcm-background-fillcm-background-soft / cm-background-soft-emphasis
gogo-foregroundgo-background-fillgo-background-soft / go-background-soft-emphasis
circir-foregroundcir-background-fillcir-background-soft / cir-background-soft-emphasis
pedped-foregroundped-background-fillped-background-soft / ped-background-soft-emphasis
prevprev-foregroundprev-background-fillprev-background-soft / prev-background-soft-emphasis

specialty is case-insensitive — "cm" and "CM" both work.

Examples

Replay

The sweep runs on mount, so it plays whenever the chip enters the tree. To replay it, remount the component (e.g. by changing its key).

PrioritárioPrioritárioPrioritárioPrioritárioPrioritárioPrioritário

Default

PrioritárioAlta prevalênciaMédia prevalênciaBaixa prevalência

CM

PrioritárioAlta prevalênciaMédia prevalênciaBaixa prevalência

GO

PrioritárioAlta prevalênciaMédia prevalênciaBaixa prevalência

CIR

PrioritárioAlta prevalênciaMédia prevalênciaBaixa prevalência

PED

PrioritárioAlta prevalênciaMédia prevalênciaBaixa prevalência

PREV

PrioritárioAlta prevalênciaMédia prevalênciaBaixa prevalência

Sizes

Alta prevalênciaAlta prevalênciaMédia prevalênciaMédia prevalência

Short name

PrioritárioAltaMédiaBaixa

Without the animation

animated={false} renders the settled state (the Figma Step=2), useful for lists where a sweep on every row would be noisy. The sweep is also skipped automatically when the user has prefers-reduced-motion enabled.

PrioritárioAlta prevalência

Extra content and customization

Alta

· 12 aulas

Prioridade máximaBaixa prevalência

API

PropertyTypePossible valuesDefaultDescription
levelstring”p”, “h”, “m”, “l”-Required. Priority level, matching the PriorityLevelType enum values.
specialtystring”default”, “cm”, “go”, “cir”, “ped”, “prev” (also accepted uppercase)“default”Specialty driving the text, ring and soft background colors.
sizestring”sm”, “md""md”Sets the icon size, typography and paddings.
animatedbooleantrue, falsetruePlays the ring sweep on mount. When false, the ring renders already settled at 10% opacity.
shortNamebooleantrue, falsefalseUses the abbreviated label (“Alta”) instead of the full one (“Alta prevalência”).
labelReact.ReactNode--Overrides the label derived from level.
hideLabelbooleantrue, falsefalseHides the label, keeping only the icon (and any children).
childrenReact.ReactNode--Extra content rendered after the label.
iconClassNamestring--Additional CSS classes applied to the icon slot.
labelClassNamestring--Additional CSS classes applied to the label slot.
ringClassNamestring--Additional CSS classes applied to the ring slot.
classNamestring--Additional CSS classes to apply to the root element.
asChildbooleantrue, falsefalseChange the default rendered element for the one passed as a child, merging their props and behavior.
…propsAll native span props--Allows passing any other standard properties of a span element.
Last updated on