Problem: Email chip input.
Solution#
<div class="flex flex-wrap gap-2 rounded-lg border p-2">
<span class="flex items-center gap-1 rounded-md bg-slate-100 px-2 py-1 text-sm">ayesha@acme.dev <button aria-label="Remove">✕</button></span>
<input class="flex-1 min-w-32 outline-none text-sm" placeholder="Add by email…" />
</div>Why this works#
Chips + inline input container.
Variants#
- Responsive: add screen prefixes to the core classes
- Dark: pair each color utility with its dark: twin
- Animated: add
transition+ a state variant for motion
Related recipes#
cookbook/index|Cookbook index · utilities/index|Utilities reference · patterns/index|Layout patterns
