Skip to content

Commit c89396c

Browse files
hunterloftisWestbrook
authored andcommitted
chore: warn about slotting in a single sp-slider-handle
1 parent 05b69e9 commit c89396c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/slider/slider-handle.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
## Description
22

33
Some advanced slider uses require more than one handle. One example of this is the
4-
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.
4+
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.
5+
6+
### Single Handles
7+
8+
`<sp-slider-handle>` is unnecessary for single-handle sliders. Always slot two or more `<sp-slider-handle>` components together.
9+
To customize the properties of a single-handle slider (`normalization`, `value`, etc), set them on the `<sp-slider>` element directly.
510

611
### Usage
712

0 commit comments

Comments
 (0)