Tag

Chips for labels and filters — closable, checkable, and groupable.

Astralisv0.1DesignEngineeringResearch

Import#

import { Tag } from "astralis-ui";
// Tag.Checkable, Tag.Group

Checkable groups#

Tag.Checkable is a chip with checkbox semantics; Tag.Group manages a whole set from an options array — multiple for filters, single-select for exclusive choices.

ReactVueSvelteSolid

Following: react

Props#

PropTypeDefaultDescription
variant"solid" | "subtle" | "surface" | "outline""subtle"Same family as Button/Badge.
size"xs" | "sm" | "md" | "lg""md"Chip size (same scale as Badge).
colorSchemeall 11 schemes"gray"Hue.
startElement / endElementReactNodeLeading / trailing slots (endElement yields to the close button).
closable / onCloseboolean / () => voidAdds the ✕ remove button.

Tag.Group#

PropTypeDefaultDescription
options{ label, value }[] or primitivesThe chips to render.
value / onChange(string | number)[] / (value) => void[]Controlled selection.
multiplebooleanfalseMulti-select vs exclusive.

Accessibility#

Checkable tags carry role="checkbox" + aria-checked and toggle with Enter/Space; the close button is labeled "Remove".