1.0.0 • Published 5 years ago

@phoker/white-castle v1.0.0

Weekly downloads
1
License
MIT
Repository
-
Last release
5 years ago

:hamburger: white-castle

a React material themed slider that (kinda) doesnt suck

:sunglasses: INSTALL

$ yarn add white-castle

:fire: USAGE

import React, { useState } from 'react'
import WhiteCastle from 'white-castle'

const Example = () => {
  const [ value, setValue ] = useState(0)
  return (
    <WhiteCastle
      value={value}
      onChange={val => setValue(val)}
    />
  )
}

:eyes: PROPS

PropTypeDefaultDescription
valuenumber0Self-explanatory
onChangefuncnoOpFunction to invoke when User uses the slider.
minnumber0Self-explanatory
maxnumber100Self-explanatory
colorstring#6200EEHex or rgb(a) for the entire component.

:pencil2: DEVELOP

  • clone
  • run yarn install
  • run yarn run cosmos
  • do stuff

:pray: MADE WITH

License

MIT