UNPKG

@blueprintjs/core

Version:
22 lines (13 loc) 451 B
@# Switch A switch is simply an alternate appearance for a [checkbox](#core/components/checkbox) that simulates on/off instead of checked/unchecked. @reactExample SwitchExample @## 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. @interface ISwitchProps @## CSS API @css switch