Component changelog

Slider changelog

Component-specific release notes collected from the full changelog. This page filters the published entries that mention Slider.

Release

v1.2.1

npm
Patch Changes
  • cd01923children is optional in the types of parts that work without it: Checkbox.Root, Switch.Root, Progress.Root, Slider.Root, RadioGroup.Root and RadioGroup.Item, and the triggers of Dialog, AlertDialog, Tooltip, DropdownMenu, ContextMenu and Menubar. A wrapper typed from React.ComponentProps<typeof Checkbox.Root> no longer forces every call site to pass children (#2334).

Release

v1.2.0

npm
Minor Changes
  • a265579: New state attributes: ScrollArea.Root and its scrollbars get data-scrolling while the viewport scrolls and data-hovering while the pointer is over the area, and the root gets data-has-overflow-x / data-has-overflow-y; Slider.Root gets data-dragging during a drag; Avatar.Root gets data-loading while the image loads and data-error if it fails.

  • 07e6783: Add DirectionProvider and useDirection. Wrap an RTL app once with <DirectionProvider dir="rtl"> and every Rad UI component inside uses right-to-left keyboard navigation and positioning: Tabs, TabNav, ToggleGroup, Toolbar, RadioGroup, CheckboxGroup, Accordion, Menubar, menus, NavigationMenu, Splitter, Slider, Select and Combobox. A component's own dir prop still wins. Set dir on <html> as well so text and CSS follow.

  • befc825: Checkbox takes indeterminate, uncheckedValue, form and inputRef; Switch takes uncheckedValue, form and inputRef; RadioGroup takes form and inputRef. Form reset now also works with a form outside the tree. Slider takes thumbCollisionBehavior (none, push, swap), format/locale, largeStep and form; its thumbs take getAriaLabel, getAriaValueText and inputRef. NumberField takes allowOutOfRange, snapOnStep, form and inputRef.

  • 07e6783: Add minStepsBetweenValues to Slider: in a range slider, neighbouring thumbs stay at least that many steps apart when dragged or moved with the keyboard.

  • 07e6783: Add thumbAlignment to Slider: "edge" keeps the whole thumb inside the track at the minimum and maximum (the fill, marks and pointer follow). The default "center" is unchanged. The Clarity thumb size is now the --rad-slider-thumb-size variable.

  • 07e6783: Add Slider.Value, an <output> that shows the current value formatted with the root's formatValue. A range slider shows both values, and a render function can customize the text.

Patch Changes
  • 8356a3c: The default theme now works in forced-colours mode (Windows High Contrast). Keyboard focus shows a system-colour outline (the theme's box-shadow rings are dropped in that mode), and parts that show state only with a fill (the Switch thumb and checked track, the Radio dot, the Slider range and thumb, Progress, the Tabs indicator, pressed toggles, the highlighted menu or list item) keep it in system colours.

  • 07e6783: Fix Slider in right-to-left layouts: the thumb, filled range, marks and pointer position now all mirror together. Before, the range filled from the right while the thumb stayed positioned from the left.

Release

v1.0.0

npm
Patch Changes
  • 55ee49a: Accessibility and Clarity cleanup across core controls: fix menu/navigation semantics and dismissal, form prop/state routing for Checkbox, Radio, TextArea, Fieldset, Text, and Slider, Avatar/Skeleton sizing, and contrast/alignment issues in the Clarity theme.

  • e0a9b2d: Document Slider and RadioCards keyboard interactions and ARIA references.

Release

v0.4.0

npm
Patch Changes
  • 3accf7b: slider vertical inverted fix

  • 69e0c14: onValueCommit prop for slider

Release

v0.3.0

npm
Minor Changes
  • d2c5395migration from querySelector to refs for roving focus, tree and slider