Slider component adapted from shadcn/ui (new-york-v4) to a native
<input type="range">.
Field-aware: the current value is read from the bound Phoenix.HTML.FormField.
shadcn builds its slider from Radix markup (track + range + thumb); here the
same look is reconstructed on the native element with appearance-none plus
Tailwind arbitrary variants targeting the browser's slider track/thumb
pseudo-elements (::-webkit-slider-runnable-track, ::-webkit-slider-thumb,
::-moz-range-track, ::-moz-range-thumb). No JavaScript.
Summary
Functions
Attributes
field(Phoenix.HTML.FormField) (required)min(:integer) - Defaults to0.max(:integer) - Defaults to100.step(:integer) - Defaults to1.class(:string) - Defaults tonil.- Global attributes are accepted. Supports all globals plus:
["disabled", "required", "readonly", "autofocus"].