@ehsaneha/react-slot
Version:
A React <Slot> component that merges props and forwards refs to a single child element, similar to Radix UI’s Slot.
2 lines (1 loc) • 37 B
TypeScript
A React <Slot> component that merges props and forwards refs to a single child element, similar to Radix UI’s Slot.