1.0.0 • Published 5 years ago
@phoker/white-castle v1.0.0
: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
Prop | Type | Default | Description |
---|---|---|---|
value | number | 0 | Self-explanatory |
onChange | func | noOp | Function to invoke when User uses the slider. |
min | number | 0 | Self-explanatory |
max | number | 100 | Self-explanatory |
color | string | #6200EE | Hex or rgb(a) for the entire component. |
:pencil2: DEVELOP
- clone
- run
yarn install
- run
yarn run cosmos
- do stuff
:pray: MADE WITH
License
MIT
1.0.0
5 years ago