@omiu/slider
TypeScript icon, indicating that this package has built-in type declarations

0.0.15 • Public • Published

Slider

used for dragging through content on page

Import

import '@omiu/slider'

Or use script tag to ref it.

<script src="https://unpkg.com/@omiu/slider"></script>

Usage

<o-slider></o-slider>

API

Props

{
  min?: number
  max?: number
  step?: number
  value?: number
  second_value?: number
  size: 'small' | 'normal' | 'large'
  range: 'single' | 'double'
  orient?: 'vertical' | 'horizontal'
  shape: 'square' | 'round'
  tooltip?: boolean
  disabled?: boolean
  reversed?: boolean
}

Default Props

{
  //default a single round range slider
  min: undefined,
  max: undefined,
  step: 1,
  value: undefined,
  second_value: undefined,
  range: 'single',
  size: 'normal',
  orient: 'horizontal',
  shape: 'round',
  tooltip: false,
  disabled: false,
  reversed: false,
}

Events

  • input
  • change

Package Sidebar

Install

npm i @omiu/slider

Homepage

omijs.org

Weekly Downloads

2

Version

0.0.15

License

MIT

Unpacked Size

73 kB

Total Files

4

Last publish

Collaborators

  • dntzhang