Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@evercoder/react-circular-slider-bar

Package Overview
Dependencies
Maintainers
4
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@evercoder/react-circular-slider-bar

A circular slider component for react

  • 1.3.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
4
Created
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

Package last updated on 28 Apr 2020

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc