Package Exports
- @fseehawer/react-circular-slider
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@fseehawer/react-circular-slider) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
react-circular-slider
A highly customizable circular slider with no dependencies.
You can see some examples here!
install
npm install @fseehawer/react-circular-slider
example
import React from 'react';
import CircularSlider from '@fseehawer/react-circular-slider';
const App = () => {
const onSliderChange = (value) => {
// use value
console.log(value);
};
return (
<CircularSlider
onChange={onSliderChange}
/>
)
};
export default App;
The CircularSlider component with some custom props. See example here!
<CircularSlider
label="savings"
labelColor="#212121"
knobColor="#212121"
progressColorFrom="#ff8500"
progressColorTo="#a15400"
progressSize={4}
trackColor=#eeeeee"
trackSize={12}
customData={["1€","2€",...]}
onChange={onChange}
/>
Props
prop | type | deafult |
---|---|---|
width | number | 280 |
knobColor | string | #4e63ea |
label | string | DEGREES |
labelColor | string | #272b77 |
progressColorFrom | string | #80C3F3 |
progressColorTo | string | #4990E2 |
progressSize | number | 6 |
trackColor | string | #DDDEFB |
trackSize | number | 6 |
customData | array | [] |
onChange | func | value => {} |