Components
Tooltip
Tiny CSS-only tooltips on hover and focus. Set the label via `data-tooltip`.
<button class="b-btn b-btn-secondary b-tooltip" data-tooltip="Save changes">Save</button>
Notes
- Tooltips use CSS only — they show on
:hoverand:focus-visible - Always pair an icon-only button with
aria-labelfor screen readers - Tooltips are not focusable themselves; they shouldn't carry information that's only available via hover
API
| Attribute | Effect |
|---|---|
class="b-tooltip" | Wraps the trigger element |
data-tooltip="text" | The tooltip content |