Skip to content

Commit

Permalink
chore: warn about slotting in a single sp-slider-handle
Browse files Browse the repository at this point in the history
  • Loading branch information
hunterloftis authored and Westbrook committed Sep 17, 2021
1 parent 05b69e9 commit c89396c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/slider/slider-handle.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
## Description

Some advanced slider uses require more than one handle. One example of this is the
range slider above. `sp-slider` supports an arbitrary number of handles via the `<sp-slider-handle>` sub-component, although it would be very rare to ever require more than two handles.
range slider above. `<sp-slider>` supports multiple handles via the `<sp-slider-handle>` sub-component, although it would be very rare to ever require more than two handles.

### Single Handles

`<sp-slider-handle>` is unnecessary for single-handle sliders. Always slot two or more `<sp-slider-handle>` components together.
To customize the properties of a single-handle slider (`normalization`, `value`, etc), set them on the `<sp-slider>` element directly.

### Usage

Expand Down

0 comments on commit c89396c

Please sign in to comment.