react-three-toggle is toggle component for react.
- TypeScript support
- Supports 3 or more
npm i --save react-three-toggle
import React from "react";
import ReactThreeToggle from "index";
function App() {
return <ReactThreeToggle values={["hoge", "fuga", "piyo"]} />;
}
export default App;
- values
- className
- height(16px)
- onChange
- initialValue(values[0])
- isVertical(false)
- isWrap(false)
- style
- width(48px)