@blueprintjs/core
Version:
Core styles & components
23 lines (14 loc) • 631 B
Markdown
@switch is simply an alternate appearance for a [checkbox](
simulates on/off instead of checked/unchecked.
@
@css pt-switch
@
The `Switch` component is available in the __@blueprintjs/core__ package.
Make sure to review the [general usage docs for JS components](
```tsx
<Switch checked={this.state.isPublic} label="Public" onChange={this.handlePublicChange} />
```
Note that this component supports the full range of props available on HTML `input` elements.
The most common options are detailed below.
@interface ISwitchProps
A