Ark Logo
Undefined
Components
Toggle

Toggle

A two-state button that can be toggled on or off.

Examples

Here's a basic example of how to use the Toggle component:

Controlled

Use the pressed and onPressedChange props to control the toggle's state.

Disabled

Use the disabled prop to disable the toggle.

Indicator

Use the Toggle.Indicator component to render different indicators based on the state of the toggle.