---
url: /api/renderers/web-components/src/variables/toggleButton.md
---
[pantoken-root](../../../../index.md) / [renderers/web-components/src](../index.md) / toggleButton

# Variable: toggleButton

> `const` **toggleButton**: [`ElementDefinition`](../interfaces/ElementDefinition.md)

Alpha

`<instui-toggle-button>` — a two-state button. `pressed="true"` reflects to the button's
`aria-pressed`; slotted content is the label.

## Example

```html
<instui-toggle-button pressed="true">Bookmarked</instui-toggle-button>
```
