JSPM

  • Created
  • Published
  • Downloads 3821
  • Score
    100M100P100Q142367F
  • License MIT

A customizable circular slider with many features to come.

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;

Props

prop type deafult
width number 280
knobColor string #4e63ea
label string Degrees°
labelColor string #272b77
progressColors object {from: '#80C3F3', to: '#4990E2'}
trackColor string #DDDEFB
progressSize number 6
trackSize number 6
onChange func value => {}

license

MIT License