
- Location:
sabo/src/components/ui/kbd.tsx
When to use
- Show keyboard shortcuts inline with labels, menus, or tooltips.
- Make shortcuts scannable with concise keys (e.g., ⌘K, Ctrl+P).
Usage
sabo/src/components/ui/kbd.tsx
Key props
Use to adjust size (
text-xs → text-sm), spacing, or colors.Styling tip
- Keep contrast high and size small; KBD is a hint, not a button.
- Group related keys with
KbdGroup.
Accessibility
- Pair with descriptive text (“Search”) or tooltips to clarify purpose.