Everything you need to install Matos UI components and run the registry locally.
Matos UI is distributed through the shadcn CLI. Components are copied into your project, so you own the code and can style it with your theme.
Before installing components, make sure your app has:
Create a Next.js app:
npx create-next-app@latest my-appMove into the project:
cd my-appInitialize shadcn/ui:
npx shadcn@latest initInstall a component from the production registry:
npx shadcn@latest add https://matos-ui.com/r/button.jsonInstall more components:
npx shadcn@latest add https://matos-ui.com/r/badge.json
npx shadcn@latest add https://matos-ui.com/r/command-dock.json
npx shadcn@latest add https://matos-ui.com/r/dynamic-island.json
npx shadcn@latest add https://matos-ui.com/r/file-upload.jsonInstall a demo:
npx shadcn@latest add https://matos-ui.com/r/button-demo.jsonThe shadcn CLI installs registry dependencies when they are declared by the component. If you are copying files manually, install the packages used across Matos UI:
npm install @base-ui/react framer-motion lucide-react tailwind-merge tailwind-variantsWith Bun:
bun add @base-ui/react framer-motion lucide-react tailwind-merge tailwind-variantsAfter installation, import the component from your local components folder:
import { Button } from "@/components/matos-ui/button"
export function Example() {
return <Button>Save changes</Button>
}Clone the repository:
git clone https://github.com/SilasMatos/matos-ui.gitMove into the project:
cd matos-uiInstall dependencies:
bun installStart the docs app:
bun run --cwd apps/docs devThe docs run at:
http://localhost:4000Build the registry JSON files:
bun run --cwd apps/docs registry:buildRun TypeScript checks for the docs app:
bun run --cwd apps/docs types:checkBuild the full docs app:
bun run --cwd apps/docs buildRun the full monorepo build:
bun run buildFormat and lint the workspace:
bun run checkWhen the docs dev server is running, you can install components from the local registry:
npx shadcn@latest add http://localhost:4000/r/button.jsonThis is useful when testing new components before publishing.
On This Page
Install Matos UI
Choose a package manager and copy one command for every component.