# ToggleButton (@salmonui/buttons/button)

> The ToggleButton function of @salmonui/buttons/button: 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.

Canonical: https://salmonui.dev/docs/reference/buttons/button/ToggleButton

```ts
import { ToggleButton } from '@salmonui/buttons/button';
```

Entry index: https://salmonui.dev/docs/reference/buttons/button (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/buttons/button.md).

## Reference

Kind: function

```ts
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.
