Socket
Socket
Sign inDemoInstall

@evercoder/react-circular-slider-bar

Package Overview
Dependencies
284
Maintainers
4
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @evercoder/react-circular-slider-bar

A circular slider component for react


Version published
Weekly downloads
14
decreased by-60%
Maintainers
4
Install size
24.0 MB
Created
Weekly downloads
 

Readme

Source

React Circular Slider Bar

Enjoy a circular slider bar component for React with no unnecessary dependencies

Key Features:

  • Simple to use
  • Highly customizable
  • No extra dependencies
  • Style based: no images / SVGs

Check the demo!


Getting started

install

npm install --save-dev react-circular-slider-bar

usage example

import React from 'react';
import CircularSlider from 'react-circular-slider-bar';

const myApp = () => (
  <div>
    ...my awesome stuff...
    <CircularSlider
      r={50}
      trackWidth={10}
      thumbWidth={10}
      onChange={value => console.log(value)}
    />
  </div>
);

export default myApp;

controlled component

<CircularSlider
  value={this.state.value}
  onChange={value => this.setState({ value })}
/>

Props

proptypedeafult
rnumber80
initialAnglenumber90
valuenumberundefined
trackWidthnumber2
trackColorstring#f5f5dc
arcColorstring#7985f1
thumbWidthnumber10
thumbColorstringwhite
thumbBorderWidthnumber2
thumbBorderColorstring#cccccc
onChangefuncvalue => {}

Keywords

FAQs

Last updated on 28 Apr 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc