Skip to content
Primitives

Toggle

A toggle button that switches between active and inactive states, useful for toolbar actions.

Preview:
1280px

Props

PropTypeDefaultDescription
checkedbooleanfalseControlled checked state.
onChange(checked: boolean) => void-Fired when the toggle state changes.
labelstring-Label text beside the toggle.
descriptionstring-Helper text below the label.
disabledbooleanfalsePrevents interaction.