Skip to content
Hazine

Standard buttons

0 of 5 shipped. Nothing has shipped here yet. The list below is what this family will hold, and how each structure differs.

Planned 5

  • Button with Disabled Reason

    Uses aria-disabled instead of the disabled attribute so the control keeps its tab stop and its explanation; activation is swallowed and replaced by showing the reason, an optional inline action slot in the tooltip ("Upgrade plan") resolves the block, and a lock icon marks permission cases so the state never depends on opacity alone.

  • Button with Shortcut Hint

    Adds a trailing kbd segment separated from the label and wires an actual key listener; the hint is exposed through aria-keyshortcuts rather than read as part of the name, and the listener is skipped while focus is in a text field unless a modifier is held.

  • Button with Count Suffix

    Label and count are two visual segments in one target: the count sits in an inset pill using muted tokens, and the accessible name is composed as a sentence ("Filters, 3 active") through a visually hidden span instead of reading a bare number.

  • Responsive Collapsing Button

    Driven by a container query rather than hover or the viewport: below a configurable container width the label becomes visually hidden (never removed from the accessible name), the button becomes square, and a tooltip takes over as the visible label; a priority prop decides which sibling buttons collapse first.

  • Block Button with Description

    Row layout that fills its container with title plus description on the left and an affordance chevron pinned right; the description is linked with aria-describedby so the name stays short, and the whole row is one focus stop with a full-outline focus ring.