View as Markdown

API reference: @salmonui/buttons/button

ToggleButtonfunction

import { ToggleButton } from '@salmonui/buttons/button';
function ToggleButton(props: ToggleButtonProps): ReactElement;

Toggle button (APG Button, toggle variant): aria-pressed, data-pressed. Inside a ToggleButtonGroup it is an item of that group: a radio (role="radio", aria-checked) in single mode, a toggle button (aria-pressed) in multiple mode, with a roving tabindex.