Launch Week Day 2: Introducing Reports: An Extensible Reporting Framework for Socket Data.Learn More
Socket
Book a DemoSign in
Socket

@inthepocket/itp-rcc-slider

Package Overview
Dependencies
Maintainers
9
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@inthepocket/itp-rcc-slider

ITP Slider component

latest
npmnpm
Version
0.0.2
Version published
Maintainers
9
Created
Source

ITP Slider component

A simple slider component based on react-compound-slider.

Usage

$ npm install @inthepocket/itp-rcc-slider

Import

import Slider from '@inthepocket/itp-rcc-slider';

JSX

<Slider values={[3]} />

API documentation

Slider

<Slider
  values={[3]}
  domain={[0, 10]}
  step={1}
  onChange={values => console.log(values)}
  right={false}
/>
PropertyDescriptionTypeDefaultRequired
...slider propsSee react-compound-slider slider docs---
leftBoolean value to control whether the left most track is included in the tracks array. 1booleantrue-
rightBoolean value to control whether the right most track is included in the tracks array. 1booleantrue-
prefixCssPrefix for css classNamesstring'slider'No
stylesimported css module (if passed, prefixed classNames will be disabled), see styles propertyObjectnullNo

1 See react-compound-slider Tracks docs

Styles property

PropertyDescriptionTypeDefaultRequired
Slider-string-Yes
Rail-string-Yes
Track-string-Yes
Handle-string-Yes
isHandleActive-string-No

The css module should look like this:

.Slider {}
.Rail {}
.Track {}
.Handle {}
.isHandleActive {}

Development

Installation

$ npm install

Test

$ npm run test

Build

Compiles the TypeScript source to ES5.

$ npm run build

Keywords

react

FAQs

Package last updated on 29 Apr 2019

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