import { useState } from 'react';import { Switch } from '@arctic-kit/snow';function Demo() {const [checked, setChecked] = useState(false);return (<Switchlabel="Enable Arctic Design" color="primary" size="medium"onToggle={() => setChecked(!checked)}checked={checked}/>);}
Props | Type | Default |
---|---|---|
checked | boolean | undefined | false |
color | SnowColor | primary |
disabled | boolean | undefined | false |
label | string | undefined | --- |
onToggle | (() => void) | undefined | --- |
readOnly | boolean | undefined | false |
size | "small" | "medium" | "large" | medium |