The Toggle component toggles between hiding and showing the selected elements.


defaultPressedThe pressed state of the toggle when it is initially rendered. Use when you do not need to control its pressed state.
pressedThe controlled pressed state of the toggle. Must be used in conjunction with onPressedChange.
onPressedChangeEvent handler called when the pressed state of the toggle changes.
disabledWhen true, prevents the user from interacting with the toggle.