A checkbox component. This can render a true/value value in multiple ways. Set the type property to determine how it looks visually. types : default, bordered, change-icon, switch-line, switch-box
interface ICheckboxInstanceProps { focus: () => void }
import {ICheckboxInstanceProps} from 'uxp/components';
<Checkbox checked={checked} onChange={(isChecked) => setChecked(isChecked)} label='Are you sure' />
<Checkbox checked={checked} onChange={(isChecked) => setChecked(isChecked)} label='Are you sure' type="switch-box" />
Last updated 12 months ago