1.0.0-alpha.2 • Published 5 years ago

@talixo/slider v1.0.0-alpha.2

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

Talixo Slider

UI Component which represents Slider

How to install

Package is available as @talixo/slider in NPM registry, so you can use it in your project using npm install @talixo/slider --save or yarn add @talixo/slider.

Requirements

Your package should additionally have some extra dependencies:

  • @talixo/shared: ^0.1.0
  • prop-types: ^15.6.1
  • react: ^16.2.0
  • react-dom: ^16.2.0

These packages are required by @talixo/slider, but you have to install them manually, to avoid having different versions of these in your application.

Supported props

Property nameTypeDefaultDescription
classNamestringn/aadditional class name passed to wrapper
valuenumberself-controlledvalue of input
maxnumbern/amaximum value in range
minnumbern/aminimum value in range
stepnumbern/asize of each movement of the slider control
onFocusfunctionn/aevent handler when input is focused
onBlurfunctionn/aevent handler when input lost focus
onChangefunctionn/aevent handler when input is changed, with new value

Changelog

  • 0.1.0 - initial version