Menu

shadcn registry explained: how to ship your own components
📰

shadcn registry explained: how to ship your own components

DEV Community: nextjs·Marco Schulz·8 days ago
#l7jto0nU
#devtonextjs#devto#dev#registry#json
Reading 0:00
15s threshold

The thing that makes shadcn different from a component library is that the code lands in your project. You run one command, a file appears in components/ui , and from that moment it is yours. Fewer people know that the same mechanism is open to anyone. A shadcn registry is just JSON on a URL, and the CLI will happily install from yours. Facade is built on that mechanism, and this article explains how it works so you can ship your own components the same way.

What registry.json is

A registry is a static index plus one JSON file per item. The index, registry.json , lists the items with their names, types and descriptions. It is what a human or a tool reads to find out what exists.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.