- Allow explicit
undefinedfor all optional types for compatibility with TypeScript'sexactOptionalPropertyTypesflag. - Fixed
Slotthrowing when anasChildchild is a lazy reference whose resolved value is itself a lazy reference.
- Added support for multiple
aria-describedbyattributes. - Fixed compatibility issues with React Server Components.
- Reverted breaking changes that caused compatibility issues with React Server Components.
- Republish through CI to attach provenance attestations. The previous versions of these packages were published manually outside of CI and therefore shipped without provenance; this patch re-releases the same code through the CI pipeline so every package includes an attestation.
- Updated dependencies:
@radix-ui/[email protected],@radix-ui/[email protected]
SlotProps and createSlot now accept generic type arguments to specify the type of element a slot should render, as well as its props.
const Slot = createSlot<HTMLButtonElement, MyCustomButtonProps>('Slot');- Fixed infinite re-render loop in React 19 caused by
Slotcreating a new ref callback on every render - Added support for nested
Slottablevia a render prop, so a slotted element can be wrapped while still merging Slot props and refs onto it - Added repository.directory to all package.json files
- Improved error messages for invalid slot children
- Updated dependencies:
@radix-ui/[email protected]
- Fixed an issue with how slot components interact with lazy React components. In the case of a lazy component instance, the resulting promise must be consumed to render the desired component.
- Replace deprecated 'ElementRef' with 'ComponentRef' (#3426)
- Revert slot changes causing errors in server components
- Add
use clientto slot entry to prevent RSC errors
- Use stable composed refs in SlotClone (#3477)