1.0.10 • Published 3 years ago

react-multi-toogle v1.0.10

Weekly downloads
178
License
MIT
Repository
github
Last release
3 years ago

react-multi-toogle

Made with create-react-library

NPM JavaScript Style Guide

Install

npm install --save react-multi-toogle

or

yarn add react-multi-toogle

Usage

import React from 'react'
import { ReactMultiToogle } from 'react-multi-toogle'
import {
  faSun,
  faMoon,
  faAd,
  faAnchor
} from '@fortawesome/free-solid-svg-icons'

const App = () => {
  return <ReactMultiToogle
    name="testToogle"
    onClick={(state) => {
      console.log(state)
    }}
    options={[
      {
        icon: faSun,
        value: "state1"
      },
      {
        value: "state2",
        icon: faMoon,
      },
      {
        icon: faAd,
        value: "state3"
      },
      {
        icon: faAnchor,
        value: "state4"
      },
    ]}/>
}

export default App

License

MIT © jimx6

1.0.9

3 years ago

1.0.10

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago