Slider
An input for selecting a numeric value, or range of values, from within a range.
bunx shadcn@latest add @nx-ui/sliderBasic
An uncontrolled slider with a single thumb; set defaultValue to seed the starting position.
Controlled
Drive `value` and `onValueChange` yourself to reflect the moisture target for a compost windrow elsewhere on the page.
Windrow 4 is aerated automatically once moisture drops below 45%.
Range (two thumbs)
Pass an array of two values to `defaultValue` or `value` to render a min/max range slider.
Loads outside this range are flagged for manual review before composting.
Step & orientation
step snaps to increments; orientation="vertical" renders the control top-to-bottom.
Disabled
Disabled sliders dim and stop responding to pointer or keyboard input.
Composition: intake batch controls
Sliders paired with Field and a live-value Badge, configuring the accepted contamination and temperature range for a new intake batch at Hartfield Composting Site.
API reference
Exported parts and their props, extracted from the component source.
…extends SliderPrimitive.Root.Props