Elements Chip
Back to Elements

Chip

0 components

UI elements you can copy into your project.

API reference

Generated from each primitive's $props() declaration.

chip

Compact element for tags, filters, or selections.

Prop Type Default Description
ref bind: HTMLElement | null null
class as className string
variant "default" | "secondary" | "outline" | "ghost" "default"
size "sm" | "default" | "lg" "default"
removable boolean false
disabled boolean false
onremove
removeLabel string "Remove"
children Snippet
...restProps Record<string, unknown> Remaining attributes, spread onto the underlying element.