Sourced from radix-ui's changelog.
1.6.0
const Slot = createSlot<HTMLButtonElement, MyCustomButtonProps>('Slot');Avatar
- Fixed several edge cases with Avatar's loading state
- An avatar's fallback would not be displayed again if its image component unmounted. This is now fixed.
- Rendering multiple
Avatar.Imagecomponents perAvatar.Rootwas never supported and results in buggy, unpredictable behavior. We now warn about this in development.- Zero-sized images were treated as
loading, meaning thatonLoadingStatusChangeis never called once loaded. A zero-sized image now triggers anerrorstatus on load.Password Toggle Field
- Renamed misspelled
onVisiblityChangeprop toonVisibilityChange.- Fixed prop type definitions to include
asChildfor all component parts.Scroll Area
- Stabilized the viewport style tag unless the nonce changes.
Slot
SlotPropsandcreateSlotnow accept generic type arguments to specify the type of element a slot should render, as well as its props.Toggle Group
- Updated single-select and multi-select toggle groups to use the
radiogroupandtoolbarroles, respectively.Select
- Allowed a
Select.Itemwith an empty string value to act as a "clear" option. Selecting it resets the selection back to the placeholder, restoring the native<select>behavior for optional selects. Previously using an empty string value would throw an error.- Fixed a bug where typeahead search resulted in focusing an element that no longer exists.
Other updates
- Fixed a regression in that caused submenu misalignment when using custom portals.
- Removed dev-only warnings for dialogs when title and/or description is not rendered.
- Fixed a bug where menus and submenus remained open after a window loses focus.
- Fixed Dismissable Layer so outside interactions stopped by extension UI overlays do not dismiss dialogs or popovers.
- Fixed
Duplicate index signatureerrors that surfaced when consuming multiple packages together.1.5.0
Context Menu
Added support for a controlled
openprop onContextMenu.Root. This is intended for reading the open state and closing the menu programmatically, though we discourage opening the menu programmatically since opening the menu depends on user interaction to position the menu.
... (truncated)
This version was pushed to npm by GitHub Actions, a new releaser for radix-ui since your current version.