@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.
11 lines (9 loc) • 243 B
text/typescript
A React <Slot> component that merges props and forwards refs to a single child element, similar to Radix UI’s Slot.