Tag Input Chips
A text field that turns typed values into removable chips, with the chips wrapping above the input.
3 फ्रेमवर्कएडवांस्ड
A wrapping grid of multi-select tags with a check cue layered on top of the selected colour.
<!--
A wrapping grid of multi-select chips. Each is aria-pressed; the check glyph is
a redundant, decorative cue on top of the state colour, never the only signal.
-->
<div class="flex flex-wrap gap-2">
<button type="button" aria-pressed="true" class="inline-flex items-center gap-1.5 rounded-lg border border-blue-600 bg-blue-50 px-3 py-1.5 text-sm font-medium text-blue-700 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-600 focus-visible:ring-offset-2 focus-visible:ring-offset-white dark:bg-blue-950 dark:text-blue-200 dark:focus-visible:ring-offset-gray-900">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" class="h-3.5 w-3.5" aria-hidden="true"><path d="M20 6 9 17l-5-5" /></svg>
Photography
</button>
<button type="button" aria-pressed="false" class="inline-flex items-center gap-1.5 rounded-lg border border-gray-300 bg-white px-3 py-1.5 text-sm font-medium text-gray-700 transition-colors hover:bg-gray-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-600 focus-visible:ring-offset-2 focus-visible:ring-offset-white dark:border-gray-700 dark:bg-gray-900 dark:text-gray-300 dark:hover:bg-gray-800 dark:focus-visible:ring-offset-gray-900">Travel</button>
</div>| Prop | टाइप | डिफ़ॉल्ट | विवरण |
|---|---|---|---|
optionsआवश्यक | string[] | - | Options |
defaultSelected | string[] | [] | Default selected |
onChange | (selected: string[]) => void | - | On change |
className | string | - | रूट एलिमेंट पर मर्ज होने वाली अतिरिक्त क्लासेज़। |
Each option is an `aria-pressed` button; the check glyph is a redundant, decorative signal on top of the state colour so selection never relies on hue alone. Pass the choices via `options` and read them back through `onChange`.