0.5.2 • Published 3 years ago
react-three-toggle v0.5.2
react-three-toggle
react-three-toggle is toggle component for react.
Features
- TypeScript support
- Supports 3 or more
Installation
npm i --save react-three-toggle
Example
Usage
import React from "react";
import ReactThreeToggle from "index";
function App() {
return <ReactThreeToggle values={["hoge", "fuga", "piyo"]} />;
}
export default App;
Props
Required
- values
Optional(default)
- className
- height(16px)
- onChange
- initialValue(values0)
- isVertical(false)
- isWrap(false)
- style
- width(48px)