v1.9.0

For more precise input, Slider and RangeSlider now support editable values via the new SliderInput component.

ListView, TableView, and TreeView now support handle-only pointer dragging via pointerDragSource: 'handle' in drag and drop, leaving the rest of each item available for other interactions.

As always, many thanks to all of our contributors!

AI Components

For a closer look at image attachments, the new LightboxCarousel component lets users browse images in full view.

AIButton gives users a dedicated way to trigger AI-powered actions.

Other improvements include more stable Chat scroll anchoring and fixes for card attachment widths and prose() macro packaging.

Changelog

AI Components

  • Add LightboxCarousel component - @yihuiliao - PR, PR, PR
  • Render card attachments at full width in AttachmentList - @LFDanLu - PR
  • Improve scroll anchoring stability in Chat when content resizes or streams - @yihuiliao - PR
  • Update AIButton design and colors - @devongovett - PR
  • Fix prose() style macro packaging - @BDesta - PR
  • Prevent items from collapsing after web fonts load - @arba-octo - PR

DatePicker

  • Prevent the popup time field from collapsing when rendered inside a Form - @costajohnt - PR

DateRangePicker

  • Prevent the popup time field from collapsing when rendered inside a Form - @costajohnt - PR

Docs

  • Fix CustomDialog anatomy example in Dialog documentation - @chirokas - PR
  • Fix closing CardPreview tags in Card anatomy documentation examples - @mangeshraut712 - PR

ListView

  • Support handle-only pointer dragging via pointerDragSource: 'handle' - @reidbarber - PR

Popover

  • Add restoreFocus prop to customize or disable focus restoration - @snowystinger - PR

RangeSlider

SideNavPanel

  • Expand SideNavPanel to show child items when pressing a non-navigable parent item - @snowystinger - PR

Slider

Switch

  • Work around a Firefox grid sizing regression when Switch is used inside a Form - @yihuiliao - PR

TableView

  • Support handle-only pointer dragging via pointerDragSource: 'handle' - @reidbarber - PR

Toast

  • Keep spacing between toast action buttons and the expanded list while scrolling - @Zakkaus - PR

TreeView

  • Support handle-only pointer dragging via pointerDragSource: 'handle' - @reidbarber - PR

Released packages

 - @react-spectrum/ai@0.6.0
 - @react-spectrum/s2@1.9.0