SuperdindaDocs
Backoffice

FilterSelect

A dropdown filter in a table toolbar (Figma "Backoffice / Filter Select" 2079:10277, from the shipped page/filter-select.tsx): the label in muted text, the choice in medium, a chevron; 36 px.

Single choice, with counts. For a filter already applied above the table, use Filter Chip.

<FilterSelect label="Fornecedor" options={[{ value: "all", label: "Todos" }, { value: "iproyal", label: "IPRoyal", count: 12 }]} defaultValue="all" onValueChange={setSupplier} />

Playground

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

Backoffice / Filter Select

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

DefaultHoverFocusOpen

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
string—Read before the choice: "Fornecedor" → "Fornecedor: Todos".
FilterOption[]—
string—
string—
((value: string) => void)—
boolean—The menu's open state (base-ui naming).
boolean—
((open: boolean) => void)—
string—

On this page