JSPM

@fluentui/react-slider

0.0.0-nightly-20220325-0419.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 163433
  • Score
    100M100P100Q161631F
  • License MIT

Fluent UI React Slider component.

Package Exports

  • @fluentui/react-slider

Readme

@fluentui/react-slider

These are not production-ready components and should never be used in product. This space is useful for testing new components whose APIs might change before final release.

Slider component for Fluent UI React

Slider allows users to quickly select a value (or range) by dragging a thumb across a rail. It is often used when setting values with a relaxed precision such as audio volume and screen brightness.

Usage

To import Slider:

import { Slider } from '@fluentui/react-components/unstable';

Or pull directly from slider package to pin to a specific version.

import { Slider } from '@fluentui/react-slider';

Examples

<Slider />
<Slider defaultValue={3} />
<Slider value={sliderValue} onChange={sliderOnChange} />
<Slider min={0} max={10} />
<Slider vertical />
<Slider disabled />
<Slider origin={2} />
<Slider step={10} />
<Slider size="small" />