View as Markdown

API reference

@salmonui/buttons/button

23 exported symbols: 4 functions, 8 interfaces and 11 types. Each name links its page with the signature, docs and members.

import { … } from '@salmonui/buttons/button';

Functions

  • ButtonButton (APG Button, native <button>). type defaults to "button". Styling hooks: .salmon-button with data-variant, data-tone, data-size, data-icon-only, data-lo…
  • ButtonGroupA visual group of buttons: role="group", named by aria-label or aria-labelledby. It adds no keyboard model: every button stays a tab stop. .salmon-button-group…
  • ToggleButtonToggle button (APG Button, toggle variant): aria-pressed, data-pressed. Inside a ToggleButtonGroup it is an item of that group: a radio (role="radio", aria-che…
  • ToggleButtonGroupA selection group of ToggleButtons with one tab stop (roving tabindex; arrow keys, Home / End, mirrored in RTL). .salmon-toggle-button-group with data-selectio…

Interfaces

Types