Basic Toggle:
Toggle with Label:
Controlled Toggle:
Custom Styled Toggle:
Usage example:
<Toggle checked={true} label="Enable notifications" className="toggle-primary" onChange={(event: { checked: boolean }) => console.log('Toggle changed:', event.checked)} />
Import icons using:
import IconName from '~icons/ph/icon-name';
Click to open feedback modal