sh4dcnv2 · atlas
← libraries

@react-slot

react-slot brings Vue-style named slots to React for fine-grained component composition. The registry provides a single Slot.tsx component with Slottable, SlotPlaceholder, Template, and useSlots primitives, enabling parent components to inject content into named slots defined in child templates. No styling dependencies — pure React utility. Very small footprint. Free and open-source (MIT). Use for: building compound components or layout primitives that need Vue-like named slot composition when Radix UI's asChild pattern is insufficient for your composition needs.

1 components react shadcn-cli

Install this registry

shadcn (npm) npx shadcn@latest add https://react-slot.vercel.app/r/registry.json
pnpm pnpm dlx shadcn@latest add https://react-slot.vercel.app/r/registry.json
bun bunx shadcn@latest add https://react-slot.vercel.app/r/registry.json
fetch registry curl -s https://react-slot.vercel.app/r/registry.json

Components

1 total
React Slot component

Vue-style slot composition for React

npx shadcn@latest add https://react-slot.vercel.app/r/slot.json