A button that stays pressed or unpressed.
trueWhether the component renders a native |
onPressedChange | ((pressed: boolean, eventDetails: Toggle.ChangeEventDetails) => void) | – | Callback fired when the pressed state is changed. |
pressed | boolean | – | Whether the toggle button is currently pressed. This is the controlled counterpart of |
size | "lg"|"sm"|"default" | default | The size of the component. |
value | string | – | A unique string that identifies the toggle when used inside a toggle group. |
variant | "default"|"outline" | default | The visual style of the component. |