SuperdindaDocs
Backoffice

FilterChip

An applied filter above a table (Figma "Backoffice / Filter Chip" 2056:48830, Kind=Applied): "Status: Atenção", pressing it edits the filter, the × removes it.

Default, Hover, Focus. The chips row wraps.

<FilterChip label="Status" value="Atenção" onClick={edit} onRemove={clear} removeLabel="Remover filtro Status" />

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 Chip

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

Kind · Applied

DefaultHoverFocus

Kind · Add

DefaultHoverFocus

Props

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

FilterChipProps

PropTipoPadrãoDescrição
string—The filter's name, "Status".
string—The applied value, "Atenção".
(() => void)—Figma "showRemove": removes the filter.
string—Name of the remove button, e.g. "Remover filtro Status". Required with `onRemove`.
string—

FilterChipAddProps

PropTipoPadrãoDescrição
string—
React.ReactNode—

On this page