Components
Agents
Media
Prerequisites
Requires React (Next.js, Remix, Astro, Vite, Gatsby), Tailwind CSS, and an initialized shadcn project:
$ pnpm dlx shadcn@latest init
Install a component
Components install into components/ui/motif/ along with their registry dependencies:
$ pnpm dlx shadcn@latest add https://motif.sweetretry.com/r/question-card.json
import { QuestionCard } from "@/components/ui/motif/question-card";
export function Review() {
return (
<QuestionCard
questions={[
{
id: "scope",
title: "How focused should the first release be?",
options: [
{ value: "focused", label: "A focused starter set" },
{ value: "broad", label: "A broader collection" },
],
},
]}
onSubmit={(answers) => console.log("submitted", answers)}
/>
);
}Install a block
Blocks install a full surface and all of its underlying part components in one command:
$ pnpm dlx shadcn@latest add https://motif.sweetretry.com/r/agent-run.json
Theme tokens
Registry items declare custom state tokens (such as warning) in cssVars, which shadcn add appends to :root, .dark, and @theme in your CSS without overwriting existing tokens.
Browse the registry
- Agents — conversation surfaces
- Media — controls and canvas pieces for generation
- Data — heatmaps, breakdowns, and dates
- Components — shared chrome
- Playground — assembled chat and canvas apps