For the complete documentation index, see llms.txt. Markdown variants are available by appending .md to any URL or sending an Accept: text/markdown header. An agent skill is available at /.well-known/agent-skills/site-skill.md.
18

Installation

How to install a component from the Motif registry into your app.

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