Problem: This very pattern.
Solution#
<aside class="w-72 shrink-0 border-r pe-6 text-sm">
<p class="px-3 pt-4 text-xs font-semibold uppercase text-slate-400">Getting started</p>
<a class="mt-1 block rounded-lg bg-blue-50 px-3 py-1.5 font-medium text-blue-700">Introduction</a>
<a class="block rounded-lg px-3 py-1.5 text-slate-600 hover:bg-slate-50">Installation</a>
</aside>Why this works#
Group label + active highlight + hover rows.
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
