Skip to content
Theme:

Ui3nChip

Chip component for displaying tags, labels, and compact information elements.

Props

NameTypeDefaultDescription
idstring | undefined

Root element id

heightstring | number | undefined24

Chip height

maxWidthstring | number | undefined200

Chip maximum width

plainboolean | undefinedfalse

Chip plain style

roundboolean | undefinedtrue

Chip round shape

closeableboolean | undefinedfalse

Chip closeable

colorstring | undefined"var(--color-bg-control-secondary-default)"

Chip color

textSizestring | number | undefined10

Text size

textColorstring | undefined"var(--color-text-control-primary-default)"

Text color

disabledboolean | undefined

Chip disabled state

Events

Event NameArguments / Value TypeDescription
clickvalue: MouseEvent
close

Slots

Slot NameScope Props (v-slot)Description
#left{ size: number; color: string; }

Left slot

#default

Default slot

Usage Examples

Simple chip

Simple chip

Basic chip usage with default settings

Default chip
Another chip
Tag label

Chip sizes

Chip sizes

Different chip heights: 20px, 24px (default), 32px, 40px

Small (20px)
Default (24px)
Medium (32px)
Large (40px)

Chip with left slot

Chip with left slot

Chip with icon or avatar in the left slot

Vue.js
TypeScript
Vite

Closeable chips

Closeable chips

Chips with close button using the closeable prop

JavaScript
Python
Go
Rust

Color customization

Color customization

Custom background color, text color and text size

Primary
Secondary
Success
Error
Warning

Plain style

Plain style

Chip with border outline using the plain prop

Plain chip
Primary outline
Success outline
Closeable outline