# Introduction

An open shadcn registry of interface parts for AI agents and generative media.

> For the complete documentation index, see [llms.txt](/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](/.well-known/agent-skills/site-skill.md).

**Motif** is a [shadcn registry](https://ui.shadcn.com/docs/registry) of interface parts for AI agents and generative media. Install components with `npx shadcn add` to own the source directly.

## What's in it [#whats-in-it]

- **Agents** — `conversation`, `message`, `thinking-block`, `loading-state`, `prompt-input`, `voice-input`, `attachment`, `scroll-rail`, `approval-card`, `question-card`.
- **Components** — `ratio-picker`, `resolution-picker`, `duration-slider`, `generation-overlay`, `cover-fan`, `flow-edge`, `settings-dialog`, `activity-heatmap`.
- **Blocks** — `agent-run`.

## How the parts are built [#how-the-parts-are-built]

- **Compound components** — A root owns the state and named parts compose it; empty slots and unhandled parts render nothing.
- **Theme tokens** — Every color uses shadcn tokens (`bg-card`, `text-muted-foreground`, `text-success`) and ships required tokens in `cssVars`.
- **[Motion](https://motion.dev/)** — Used for state transitions like thread auto-follow, loading waves, and card hover lift.
- **Agent ready** — Publishes `llms.txt`, `llms-full.txt`, an API catalog, and agent-skill discovery routes.

## Install [#install]

```bash
npx shadcn@latest add https://motif.sweetretry.com/r/question-card.json
```

```tsx
import { QuestionCard } from "@/components/ui/motif/question-card";
```

## FAQ [#faq]

<Accordion type="multiple">

<AccordionItem value="faq-1">
<AccordionTrigger>
Why copy/paste instead of npm packages?
</AccordionTrigger>
<AccordionContent>

You own the source code and can customize components directly without fighting package constraints.

</AccordionContent>
</AccordionItem>

<AccordionItem value="faq-2">
<AccordionTrigger>
Which frameworks are supported?
</AccordionTrigger>
<AccordionContent>

Any React framework: Next.js, Remix, Astro, Gatsby, Vite, etc.

</AccordionContent>
</AccordionItem>

<AccordionItem value="faq-3">
<AccordionTrigger>
Do I have to take a whole surface?
</AccordionTrigger>
<AccordionContent>

No. Every part installs on its own, and `shadcn add` brings its base registry dependencies along automatically.

</AccordionContent>
</AccordionItem>

</Accordion>
