Usage
To display a chip, pass a label
, onClick
, and onRemove
to <Chip>
.
Ivan Salim
Avatars
To display an avatar with the chip, set showAvatar
to true
. You can customize the avatar color by setting color
.
N
Nam-Chi VanAPI Reference
Chip
Inherits properties from HTMLElement
.
Prop | Type | Default |
---|---|---|
label | string | |
color | "orange" "yellow" "lime" "emerald" "cyan" "blue" "violet" "fuchsia" "rose" "gray" | "violet" |
onClick | MouseEventHandler<HTMLDivElement> | |
onRemove | MouseEventHandler<HTMLButtonElement> | |
showAvatar | boolean | false |