Chip
A compact interactive token for filters, selections and removable metadata.
Installation
npx alixan-ui-nuxt add chipUsage
<template>
<div class="flex flex-wrap items-center gap-2">
<Chip label="Default" />
<Chip label="Selected" selected />
<Chip label="Design" type="select" />
<Chip label="Nuxt" type="remove" />
</div>
</template>Size
<template>
<div class="flex flex-wrap items-center gap-2">
<Chip label="Small" size="sm" />
<Chip label="Medium" />
<Chip label="Large" size="lg" />
</div>
</template>API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
| label | string | - | Fallback text when the default slot is not used. |
| type | 'default' | 'select' | 'remove' | 'default' | Adds the select chevron or remove icon. |
| size | 'sm' | 'md' | 'lg' | 'md' | Controls height, radius, padding and icon size. |
| selected | boolean | false | Switches the chip into the active primary state. |
| disabled | boolean | false | Disables interaction and reduces opacity. |