Packages

@radix-ui/react-slot

1.5.0 · 12 Oct 2026MIT243.3M / weekRepositoryHomepagenpmAtom feed

Your version

1.3.0

15 Jun 2026Where it was published

1.5.0 is the newest release of 1.x.

Release note

The section about @radix-ui/react-slot of a note shared by several packages.

Added generic type arguments for SlotProps and createSlot

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');

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.