@blueprintjs/core
Version:
Core styles & components
22 lines (13 loc) • 451 B
Markdown
# Switch
A switch is simply an alternate appearance for a [checkbox](#core/components/checkbox) that
simulates on/off instead of checked/unchecked.
## Props
```tsx
<Switch checked={this.state.isPublic} label="Public" onChange={this.handlePublicChange} />
```
This component supports the full range of HTML `<input>` props.
The most common props are detailed below.
## CSS API