Skip to content
This repository has been archived by the owner on Aug 2, 2024. It is now read-only.

Latest commit

 

History

History
42 lines (33 loc) · 804 Bytes

range-slider.md

File metadata and controls

42 lines (33 loc) · 804 Bytes

< Back to Components List

Range slider

polaris-range-slider implements the Polaris Range slider component.

Examples

Default range slider (range of 0-100):

{{polaris-range-slider
  label="Opacity percentage"
  value=value
  onChange=(action (mut value))
}}

Range slider with custom minimum, maximum and step sizes:

{{polaris-range-slider
  label="Logo offset"
  min=-10
  max=10
  step=5
  value=value
  onChange=(action (mut value))
}}

Passing help text and error information:

{{polaris-range-slider
  label="Opacity percentage"
  value=value
  helpText="Choose the opacity of your logo image"
  error="Invalid opacity value"
  onChange=(action (mut value))
}}