Skip to main content

Toggle button

<ToggleButton
selected={data}
onChange={setData}
>
Toggle me
</ToggleButton>

Rest of the props are the same as on the Button component.

For the complete list of props, use your IDE's autocomplete functionality.