Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Publishes a React component to the team's 21st.dev library for one-command install, or installs an existing team component.
18% 95%+77 ptsof test cases passed
Passed 21 of 22 test cases with the skill, and 4 of 22 without it.
3 of 3 safety checks passed
Use this skill in two directions: publishing a component for the team, and installing one the team already shared.
API_KEY_21ST env is set, or the registry CLI has saved credentials. If neither — tell the user to run npx @21st-dev/registry login once. Don't try to log them in yourself.@21st-dev/registry. Don't reinvent — use it.| User says… | Visibility |
|---|---|
| "share with team", "залей нам", "publish internally", default for any unqualified ask | unlisted in the selected/default registry (no visibility flag needed) |
| "share publicly via link / on my profile, but don't list it in the library" | --unlisted |
| "publish publicly", "make it public on 21st" | --public |
| "restrict to the registry team", "private team draft" | --private |
Never use --public without explicit user instruction. Public components go through admin moderation and appear in the 21st library. --unlisted is the safe option when the user wants a shareable URL but doesn't want a library listing.
The CLI's positional file path triggers auto-detection — name from the default export, slug from the filename, tags from imports, demo auto-found or synthesised. So in 95% of cases this is enough:
npx @21st-dev/registry ./path/to/Component.tsx \
--to default \
--description "1-2 sentences about what it does and when to use it"
| Flag | When to use |
|---|---|
--name "Display Name" | Override the auto-detected name. Default is humanised version of the default-export name. |
--description "…" | Required. 10+ chars. Write a real description — what it does and when to use it. Never fabricate; if you don't know, ask the user. |
Next to this one in the catalogue, plus more from the same author.