Detent UI
Animated React components for AI apps, agent interfaces and interactive charts.
Install with the shadcn CLI. The source is yours to change.
Website · Components · Blocks · Docs · llms.txt · Pro
Detent UI is a React component library for products built on AI: prompt boxes, model pickers, diff review, voice notes, explained metrics and charts you can click into. Every piece ships with its motion, its states (loading, empty, error, where they apply) and reduced-motion support already worked out. You install it with the shadcn CLI, so the TypeScript source lands in your project and you own it.
- 21 free components and 5 free blocks, MIT licensed
- Built for React 19, Tailwind CSS v4 and Next.js (App Router), animated with Motion
- Styled by your shadcn theme, light and dark
- Readable by coding agents:
llms.txtand a markdown copy of every page
![]() | ![]() |
![]() | ![]() |
![]() | ![]() |
Quick start
Pick a component on detentui.com/components and run its command:
npx shadcn@latest add https://detentui.com/r/popupThe source lands in components/detent. The first install also adds the Detent theme, and anything a piece depends on, such as motion, comes with it. Swap the name for any piece in the tables below: npx shadcn@latest add https://detentui.com/r/<name>.
Requirements: React 19 and Tailwind CSS v4. Next.js is what we test on; Vite with React works the same way.
Wrap your app once so the motion calms down for people who have asked their device for less of it:
import { MotionConfig } from 'motion/react'
export default function RootLayout({ children }: { children: React.ReactNode }) {
return (
<html lang="en">
<body>
<MotionConfig reducedMotion="user">{children}</MotionConfig>
</body>
</html>
)
}Free components
All 21 are MIT licensed. Click a name for the live demo, props and code.
AI chat and agent UI
| Component | What it does | Install name |
|---|---|---|
| Prompt box | AI chat input whose tray slides out to say what the model is doing | prompt |
| Model & effort | AI model picker: choose a model, drag how hard it thinks, see the cost | models |
| Diff review | Review an AI agent's code change hunk by hunk, unified or split | diff |
| Rewrite | Select a phrase, say how it should read, accept the AI rewrite with Tab | rewrite |
| Voice note | Audio player with a waveform that inks in and a transcript that follows | voicenote |
| Buddy | An animated face for your AI assistant, with moods that react to the user | buddy |
| AI calendar | Week calendar where you add events by typing, with a live draft and clash warnings | week |
Charts and data visualisation
| Component | What it does | Install name |
|---|---|---|
| Baseline chart | Interactive line chart: click any day to compare everything against it | chart |
| Outlook chart | Forecast chart drawn as a confidence band that thins where it's less certain | trend |
| Metric explainer | KPI card: the number, its change in words and the drivers behind it | metric |
| Goal numerals | Goal progress as soft bars with big percentages, flicked through by month | rings |
| Shift | Analytics breakdown as a list, bars or change, every number animating to its place | shift |
Inputs and interactions
| Component | What it does | Install name |
|---|---|---|
| Popup | Radial context menu that opens around your finger: press, slide, let go | popup |
| Phrase | Settings written as one sentence, with words to pick and numbers to drag | phrase |
| Rewind | Textarea with history you can scrub back through, deleted words returning in colour | rewind |
| Upload | File upload dropzone: files tip the folder open and fall in as sheets | upload |
| Live list | Real-time collaborative checklist, each item arriving with who added it | livelist |
| Vault | Web3 deposit and withdraw card with every wallet and chain state handled | vault |
Text and background effects
| Component | What it does | Install name |
|---|---|---|
| Halo bands | Glow background that restarts at every curved edge and follows the pointer | halo |
| Announcement pill | The badge above a hero headline, with a line of light that runs round it once | announce |
| Slice text | Animated text: strips fly in, align into letters, then cut apart around the pointer | slices |
Free blocks
Whole page sections, built from the components and wired up.
| Block | What it is | Install name |
|---|---|---|
| FAQ | FAQ section, searched as you type | faq |
| Testimonials | Testimonial section with the numbers behind each quote | testimonials |
| Integrations | Integrations grid: your stack, through glass | integrations |
| Sign in | Sign-in page: one press, or a code by email | sign-in |
| Call to action | CTA section: one line, and an email field to start | cta |
Use Detent UI with coding agents
Detent is set up so Cursor, Claude Code, Codex, Copilot and other agents install the right piece with the right props instead of guessing.
- llms.txt: point your agent at
detentui.com/llms.txt. It lists every component with the command that installs it. Add.mdto any page address for a markdown version. - Context7: indexed at context7.com/ds-spec/detent-ui for agents that use it for docs.
Detent Pro
For teams shipping an AI product who want the whole screen, not only the parts. One payment, every update for life, unlimited projects.
- 21 more components, including a trace viewer for agent runs, extraction review, ask-your-data charts, a radar chart, lasso scatter plot, dot histogram, funnel and revenue bridge (waterfall) charts, a date range picker, an emoji picker, an agent wallet, a support chat and MCP install, which writes the real config for Cursor, Claude Code, Windsurf and Zed
- 14 full-screen blocks: agent dashboard, agent chat, evals, code review, task to merge, incident, support inbox, data table, calendar, voice mode, settings, onboarding, metered pricing and live features
- 2 templates: an AI agent workspace app (sessions, a thread that shows its work, approvals, a composer with tools and skills) and Dusk, a landing page for an AI agent
See everything and the current price at detentui.com/pro.
Pro source lives in a private repository. Without it, this one still builds and runs: each Pro preview becomes a locked stand-in from src/locked.
FAQ
Is Detent UI free?
Yes. The 21 components and 5 blocks listed above are free and MIT licensed, for personal and commercial projects. Detent Pro is a one-time purchase for the additional pieces.
How is Detent UI different from shadcn/ui?
shadcn/ui gives you the primitives: buttons, dialogs, inputs. Detent builds on the same CLI and theme to give you the finished, interactive pieces an AI product needs, such as a prompt box, a model picker, diff review and explained charts. They work side by side in the same project.
Does it work without Next.js?
Yes. The components are React 19 with Tailwind CSS v4. Next.js is what we test on; Vite with React works the same way, with the install paths adjusted.
Does it support dark mode and reduced motion?
Yes. Every piece follows your shadcn theme in light and dark, and respects prefers-reduced-motion through Motion's MotionConfig.
Run the site locally
git clone https://github.com/ds-spec/detent-ui.git
cd detent-ui
npm install
npm run dev| Folder | What's in it |
|---|---|
src/lab | The free components and blocks, their demos, and the motion they share |
src/catalog | What every piece is, and the registry the shadcn CLI installs from |
src/site | The website around them: gallery, pages and code browser |
src/app | The Next.js routes |
Issues and feedback
Found a bug or something that feels off? Open an issue. Small, specific reports help most: what you did, what you expected, and what happened.
If Detent saved you time, a ⭐ helps other developers find it.
Licence
The free components and this site's code are MIT. Detent Pro has its own licence.





