react-three-toggle
TypeScript icon, indicating that this package has built-in type declarations

0.5.2 • Public • Published

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

react-three-toggle

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(values[0])
  • isVertical(false)
  • isWrap(false)
  • style
  • width(48px)

Package Sidebar

Install

npm i react-three-toggle

Weekly Downloads

6

Version

0.5.2

License

MIT

Unpacked Size

21.4 kB

Total Files

11

Last publish

Collaborators

  • piro0919