🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

@s-ui/react-atom-slider

Package Overview
Dependencies
Maintainers
79
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@s-ui/react-atom-slider

`AtomSlider` is a component that works as an input that provides a slider a number or a set of two numbers (range)

1.33.0
latest
npm
Version published
Weekly downloads
2.7K
38.87%
Maintainers
79
Weekly downloads
 
Created
Source

AtomSlider

AtomSlider is a component that works as an input that provides a slider a number or a set of two numbers (range)

Installation

$ npm install @s-ui/react-atom-slider --save

Usage

import AtomSlider from '@s-ui/react-atom-slider'

Basic usage

<AtomSlider/>

Basic usage with custom markers (only first and last position)

<AtomSlider
  min={1}
  max={9}
  marks={['1 km', '9 km']}
/>

Step 25 and default value 50

<AtomSlider step={25} value={50}/>

Disabled

<AtomSlider step={25} value={25} disabled />

Range Basic

<AtomSlider range />

Range Step 10

<AtomSlider range step={10} />

Capturing Value Change

<AtomSlider onChange={ (e, {value}) => console.log(value)} />

Find full description and more examples in the demo page.

FAQs

Package last updated on 08 May 2024

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