Problem: Shortcut reference.
Solution#
<table class="w-full text-sm">
<tbody class="divide-y">
<tr><td class="py-2">Open search</td><td class="text-right"><kbd class="rounded border bg-slate-100 px-1.5 py-0.5 text-xs">⌘</kbd> <kbd class="rounded border bg-slate-100 px-1.5 py-0.5 text-xs">K</kbd></td></tr>
</tbody>
</table>Why this works#
kbd rows per action.
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
