Problem: Kebab actions.

Solution#

html
<div class="relative">
  <button class="grid size-8 place-items-center rounded-lg hover:bg-slate-100" aria-label="Actions">⋮</button>
  <div class="absolute right-0 top-9 hidden w-44 rounded-xl border bg-white p-1 text-sm shadow-xl">menu…</div>
</div>

Why this works#

Positioned menu panel; toggle via framework state.

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

cookbook/index|Cookbook index · utilities/index|Utilities reference · patterns/index|Layout patterns