sp-slider

Overview API Changelog

API

Attributes and Properties

Section titled Attributes and Properties
Property Attribute Type Default Description defaultValue default-value number Set the default value of the handle. Setting this property will cause the handle to reset to the default value on double click or pressing the `escape` key. disabled disabled boolean false Disable this control. It will not receive focus or events dragging dragging boolean false editable editable boolean Whether to display a Number Field along side the slider UI fillStart fill-start number | boolean | undefined formatOptions format-options NumberFormatOptions | undefined hideStepper hide-stepper boolean false Whether the stepper UI of the Number Field is hidden or not highlight highlight boolean false indeterminate indeterminate boolean false Applies `indeterminate` to the underlying `sp-number-field` when `editable === true`. Is removed on the next `change` event. label label string '' labelVisibility label-visibility 'text' | 'value' | 'none' | undefined max max number | 'next' | undefined 100 min min number | 'previous' | undefined 0 name name string '' quiet quiet boolean false Applies `quiet` to the underlying `sp-number-field` when `editable === true`. step step number | undefined 1 tabIndex tabIndex number The tab index to apply to this control. See general documentation about the tabindex HTML property tickLabels tick-labels boolean false tickStep tick-step number 0 type type string '' value value number By default, the value of a Slider Handle will be halfway between its `min` and `max` values, or the `min` value when `max` is less than `min`. variant variant string

Slots

Section titled Slots
Name Description default slot @deprecated Text label for the Slider. Use the `label` property instead. handle optionally accepts two or more sp-slider-handle elements

Events

Section titled Events
Name Type Description change Event An alteration to the value of the element has been committed by the user. input Event The value of the element has changed. sp-slider-handle-ready CustomEvent