Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion apps/v4/components/search-directory.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
} from "@/registry/new-york-v4/ui/input-group"

export const SearchDirectory = () => {
const { query, setQuery } = useSearchRegistry()
const { query, registries, setQuery } = useSearchRegistry()

const onQueryChange = (e: React.ChangeEvent<HTMLInputElement>) => {
const value = e.target.value
Expand All @@ -29,6 +29,12 @@ export const SearchDirectory = () => {
value={query}
onChange={onQueryChange}
/>
<InputGroupAddon align="inline-end">
<span className="text-muted-foreground tabular-nums sm:text-xs">
{registries.length}{" "}
{registries.length === 1 ? "registry" : "registries"}
</span>
</InputGroupAddon>
<InputGroupAddon
align="inline-end"
data-disabled={!query.length}
Expand Down
12 changes: 12 additions & 0 deletions apps/v4/content/docs/(root)/directory.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,20 @@ title: Registry Directory
description: Discover community registries for shadcn/ui components and blocks.
---

import { TriangleAlertIcon } from "lucide-react"

These registries are built into the CLI with no additional configuration required. To add a component, run: `npx shadcn add @<registry>/<component>`.

<Callout
type="warning"
icon={<TriangleAlertIcon />}
className="gap-2! border-amber-200 bg-amber-50 p-2 font-semibold dark:border-amber-800 dark:bg-amber-900 *:[svg]:translate-y-1"
>
Community registries are maintained by third-party developers and are not
officially curated. Always review code on installation to ensure it meets your
security and quality standards.
</Callout>

<DirectoryList />

Don't see a registry? Learn how to [add it here](/docs/registry/registry-index).
Expand Down
17 changes: 16 additions & 1 deletion apps/v4/public/r/registries.json
Original file line number Diff line number Diff line change
Expand Up @@ -118,5 +118,20 @@
"@tb-blocks": "https://tailwindbuilder.ai/r/blocks/{name}.json",
"@heroicons-animated": "https://www.heroicons-animated.com/r/{name}.json",
"@icons-animated": "https://icons.lndev.me/r/{name}.json",
"@forgeui": "https://forgeui.in/r/{name}.json"
"@forgeui": "https://forgeui.in/r/{name}.json",
"@darx": "https://darshitdev.in/r/{name}.json",
"@gamifykit": "https://gamifykit.com/r/{name}.json",
"@beste-ui": "https://ui.beste.co/r/{name}.json",
"@tokenui": "https://www.tokenui.dev/r/{name}.json",
"@lumiui": "https://www.lumiui.dev/r/{name}.json",
"@uselayouts": "https://uselayouts.com/r/{name}.json",
"@joyco": "https://registry.joyco.studio/r/{name}.json",
"@gooseui": "https://gooseui.pro/r/{name}.json",
"@baselayer": "https://www.baselayer.dev/r/{name}.json",
"@jolyui": "https://www.jolyui.dev/r/{name}.json",
"@fab-ui": "https://fab-ui.com/r/{name}.json",
"@asanshay": "https://ds.asanshay.com/r/{name}.json",
"@headcodecms": "https://headcodecms.com/r/{name}.json",
"@typedora-ui": "https://typedora-ui.netlify.app/r/{name}.json",
"@agents-ui": "https://livekit.io/ui/r/{name}.json"
}
Loading
Loading