shadcn Registry
Add Plex UI components through the shadcn CLI — one command per component
If your project already uses the shadcn CLI, you can pull Plex UI components with a single command. The registry is a thin layer over the @plexui/ui npm package: the CLI installs the package, drops a typed re-export in your components/ui/, and you import from @/components/ui/* exactly like native shadcn components.
Prerequisites
- A Next.js / React project with
shadcninitialised (npx shadcn init) - Path aliases configured (the default
@/componentssetup works out of the box)
Install the styles once
Plex UI ships its own design tokens and CSS modules. Pull the style entry first — this installs the npm package and drops a CSS entrypoint:
npx shadcn@latest add https://plexui.dev/r/styles.jsonThen import the generated file in your app root (e.g. app/layout.tsx):
import './plexui.css';You only need to do this once for the whole project.
Add components
Each component is a separate registry entry. Install only what you use:
# One command per component
npx shadcn@latest add https://plexui.dev/r/button.json
npx shadcn@latest add https://plexui.dev/r/input.json
npx shadcn@latest add https://plexui.dev/r/dialog.json
npx shadcn@latest add https://plexui.dev/r/menu.json
npx shadcn@latest add https://plexui.dev/r/badge.json
npx shadcn@latest add https://plexui.dev/r/alert.jsonThen use them like any shadcn component:
import { Button } from "@/components/ui/button"
import { Input } from "@/components/ui/input"
import { Badge } from "@/components/ui/badge"
export default function Example() {
return (
<form>
<Input placeholder="Email" />
<Button type="submit">Subscribe</Button>
<Badge color="info">New</Badge>
</form>
)
}What the registry does
The shadcn CLI treats Plex UI the same way it treats any registry:
- Reads the JSON at
plexui.dev/r/<name>.json - Installs listed npm dependencies (
@plexui/ui) - Writes a typed re-export at
components/ui/<name>.tsx - Recursively fetches
registryDependencies(pulls instyles.jsonon first use)
Unlike classic shadcn components — which copy the full source into your repo — Plex UI components stay inside @plexui/ui, so you always get bug fixes and new features with a single npm upgrade @plexui/ui. The local components/ui/*.tsx file is a one-line re-export that keeps imports identical to native shadcn components, so your team can mix both libraries without friction.
Index
The full list of available components lives at plexui.dev/r. See each component's docs page for props and examples.