Skip to content

FilterChip

Source: client/lib/theme/vueda-tailwind/form/index.js

Pill container. Primary tint at rest; destructive tint flags a value the server rejected.

Vue component: FilterChip

SlotDefault classesDescription
rootcallbackPill container. Primary tint at rest; destructive tint flags a value the server rejected.
labelcallbackLabel segment: clicking it opens the edit popover. Carries the left pill radius. Stretches to the chip's full height so the hover target covers the full pill height.
dividercallbackHairline divider between the label and the remove control.
removecallbackRemove segment (the trailing dismiss control). Carries the right pill radius. Stretches to the chip's full height so the hover target matches the label segment.
popoversm:min-w-[25%]Edit-popover surface width floor for the embedded filter form.

root

Pill container. Primary tint at rest; destructive tint flags a value the server rejected.

Callback:

javascript
({ errored }) => [
                "inline-flex items-center rounded-full hairline text-xs font-semibold",
                errored
                    ? "[--vueda-hairline-color:color-mix(in_oklab,var(--destructive)_40%,transparent)] bg-destructive/10 text-destructive"
                    : "[--vueda-hairline-color:color-mix(in_oklab,var(--primary)_30%,transparent)] bg-primary/10 text-primary",
            ]

Source: client/lib/theme/vueda-tailwind/form/FilterChip.theme.js:19

label

Label segment: clicking it opens the edit popover. Carries the left pill radius. Stretches to the chip's full height so the hover target covers the full pill height.

Callback:

javascript
({ errored }) => [
                "inline-flex items-center self-stretch gap-1.5 rounded-l-full py-1 pl-2.5 pr-2",
                errored ? "hover:bg-destructive/15" : "hover:bg-primary/15",
            ]

Source: client/lib/theme/vueda-tailwind/form/FilterChip.theme.js:28

divider

Hairline divider between the label and the remove control.

Callback:

javascript
({ errored }) => ["h-4 w-hairline", errored ? "bg-destructive/30" : "bg-primary/30"]

Source: client/lib/theme/vueda-tailwind/form/FilterChip.theme.js:35

remove

Remove segment (the trailing dismiss control). Carries the right pill radius. Stretches to the chip's full height so the hover target matches the label segment.

Callback:

javascript
({ errored }) => [
                "inline-flex items-center self-stretch rounded-r-full px-1.5 py-1 opacity-70 hover:opacity-100",
                errored ? "hover:bg-destructive/15" : "hover:bg-primary/15",
            ]

Source: client/lib/theme/vueda-tailwind/form/FilterChip.theme.js:39

popover

Edit-popover surface width floor for the embedded filter form.

Default classes:

sm:min-w-[25%]

Source: client/lib/theme/vueda-tailwind/form/FilterChip.theme.js:46

Documents matching: server v3.0.0a1.post1client v3.0.0-alpha.2