Skip to content

kavita14/circular-slider-react

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Circular Slider Component

Installation

npm install --save circular-slider-react

How To Use

First import this component where you want to use it

import ReactCircularSlider from "circular-slider-react"

Then just renders it

<ReactCircularSlider />

Props

Prop Description Default value
circleColor Sets background color black
knobColor Sets knob color blue
radius Sets circle radius 100
halfCircle Sets if circle is half or not false
min Sets min value 0
max Sets max value 100
stepSize Sets step size 1
value Sets initial value 0
onChange callback function on value change null

Example

import React, { Component } from "react";
import ReactCircularSlider from "circular-slider-react";

class App extends Component {
  render() {
    return (
        <ReactCircularSlider size={500} circleColor="black" value={10} stepSize={2} />
    );
  }
}

export default App;

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages