Switch A Simple Input switch with react Dec 03, 2018 1 min read react-input-switch Input switch with react. View Demo Download Source Installation npm install react-input-switch --save yarn add react-input-switch Sh Theming <Switch theme={{ primaryColor: 'blue' }} /> JavaScript Controlled import Switch from 'react-input-switch'; class extends React.Component { constructor(props) { super(props); this.state = { value: 0 }; } render() { return ( <Switch value={this.state.value} onChange={value => this.setState({ value })} /> ); } } JavaScript Custom on/off value import Switch from 'react-input-switch'; class extends React.Component { constructor(props) { super(props); this.state = { value: 'yes' }; } render() { return ( <> <Switch value={this.state.value} on="yes" off="no" onChange={value => this.setState({ value })} /> {this.state.value} </> ); } } JavaScript GitHub pqx/react-input-switch?? — Read MoreLatest commit to the undefined branch on unknownDownload as zip Switch
Switch A customizable switch component for React applications A customizable switch component for React applications 22 June 2023
Switch React hook for switching between light, dark and system color mode React hook for switching between light, dark and system color mode 27 August 2022
QR Code Qr Code Generator based on the entered URL. Customize and download your generated Qr Code Qr Code Generator based on the entered URL. Customize and download your generated Qr Code 08 August 2022