Skip to content
Proyek

Tentang

Animated React components for AI agents, dashboards and checkout. Free set, MIT. Tailwind CSS + Motion.

Pengembangan web dan aplikasi

Cara angka ini diukur

53 bintang3 Fork +2 dalam 24 jam

Pertumbuhan bintang terukur

dalam 24 jam
+2
dalam 7 hari
Mengumpulkan riwayat
dalam 15 hari
Mengumpulkan riwayat
dalam 1 bulan
Mengumpulkan riwayat

Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.

README.md

Asli

UI Stacks components for AI agents

MIT license shadcn registry React 19.2+ Tailwind CSS 4 79 free components GitHub stars

Website  ·  Components  ·  Docs  ·  Install  ·  Using with AI  ·  Pro

UI Stacks components for AI agents. Animated React components for the screens people build most: AI chat and agent flows, dashboards and charts, forms and checkout. They are written in TypeScript with Tailwind CSS and Motion, and come in Light and Dark.

This repository holds the free set: 79 components under the MIT license, one .tsx file each. Copy a file, add it through the shadcn CLI, or ask your coding agent to install it. Every component also has a live demo, a props table, accessibility notes and a ready-made agent prompt at uistacks.dev.

Why UI Stacks

  • Built to be used by agents. Each component page has a prompt you can paste into Claude Code, Cursor, Codex or Copilot. A shadcn registry, an MCP server and a Claude Code skill let your agent find and add components by name.
  • Every component moves. Entrances, state changes, reordering and counters are animated with Motion, and each one falls back to a calm version when the system asks for reduced motion.
  • Light, Dark and accessible. Both themes ship in the box. Interactive parts work from the keyboard and carry labels for screen readers.
  • Your tokens, your files. Colors, radii and shadows come from one small set of CSS variables in styles/tokens.css. The components live in your repo, so you can edit any line.

Showcase

Featured

Whole screens built from UI Stacks components, the kind of stories the library is made for. These use Pro components, which are not in this repository; see UI Stacks Pro.

AI agents screen: a run card ticks through its plan, a tool call streams its output, the context window fills and the agent's reasoning settles
AI agents Pro
One agent run on one screen: the plan checks off step by step, a tool call streams its result, and the context window and reasoning update as it goes.
AI chat screen: a question is sent, the assistant reads four pages and answers with numbered sources
AI chat Pro
A full answer cycle: the composer sends, the assistant searches and reads, and the reply lands with its sources attached.
AI ops screen: eval scores per prompt version, a live versus draft comparison, a traced run and guardrail hits
AI ops Pro
Shipping a prompt change with evidence: eval scores per version, live against draft, a traced run and the guardrail hits to review.

Free components

Captured from their live demos on uistacks.dev. Everything here installs from this repository. Click any of them for the live version, the props and the code.

Approval request: an agent asks to pay three invoices, showing the tool, amount and payees, then the request is allowed once
Approval request
Stops an agent before a risky step: risk level, expiry and details, then Allow once, Always allow or Deny.
Confetti: an invoice is marked as paid and paper confetti bursts over the card
Confetti
A burst of paper for moments that earned it, drawn on a single canvas with no extra packages.
Theme toggle: a settings card switches between Light and Dark and the whole card follows
Theme toggle
A Light and Dark switch, and the surface around it eases over to the new theme.
Stats band: four headline numbers count up from zero under a short heading
Stats band
Big numbers that count up from zero the first time they scroll into view.
Ring stats: three goal rings fill toward their targets while the counts beside them rise
Ring stats
Goal rings fill toward their targets while the numbers beside them tick up.
Leaderboard: sales reps reorder as the period changes from Week to Month to All
Leaderboard
Ranked rows slide into their new places when the period changes, each with an up or down marker.
Expanding search: a search icon opens into a field and the invoice list filters as a query is typed
Expanding search
An icon that opens into a search field, with the list narrowing as you type.
Bell button: a header bell tips and rings as new updates arrive, its badge counting up
Bell button
A quiet header bell that tips, rings and shows a count when something new arrives.

Install

The components need React 19.2 or later, Tailwind CSS 4, and two packages: motion and lucide-react.

Copy the file

  1. Install the two packages:

    npm install motion lucide-react
    
  2. Paste styles/tokens.css into your global CSS, after @import "tailwindcss";. Dark mode turns on under any .dark parent.

  3. Copy a component from components/ into your app, then import it where you need it.

With the shadcn CLI

npx shadcn add https://uistacks.dev/r/approval-request

Swap approval-request for any component name. To use short names, add the registry once to components.json:

{
  "registries": {
    "@uistacks": "https://uistacks.dev/r/{name}.json"
  }
}

Then run npx shadcn add @uistacks/<name>. The same registry works with the shadcn MCP server.

With your coding agent

  • Prompt. Open any component on uistacks.dev, press Copy prompt and paste it into Claude Code, Cursor, Codex or Copilot. The prompt tells the agent what to install and how to wire it up.

  • Skill. Add the UI Stacks skill so your agent checks the library before it writes new UI:

    npx skills add https://uistacks.dev
    

    The skill lives in skills/uistacks. It covers searching, installing and the tokens that keep new screens consistent.

  • MCP server. Connect https://uistacks.dev/mcp so your agent can search components and get install commands by itself. In Claude Code:

    claude mcp add --transport http uistacks https://uistacks.dev/mcp
    

    Setup for Cursor, VS Code and Codex is in Using with AI.

Components

All 79 free components, grouped the same way as on the site. Each name links to its live page; the source sits in components/<category>/<name>.tsx.

Category Components Source
AI Chat (8) Message · Citation · Suggestions · Feedback · Starter cards · Citation row · Branch switcher · Generation progress ai-chat/
AI Agents (1) Approval request ai-agents/
Actions (5) Button · Icon button · Split button · Bell button · Copy button actions/
Text entry (13) Input · Textarea · Chip input · Currency input · Password input · OTP input · Inline edit · Number input · Search input · Phone input · Time input · Copy field · Expanding search text-entry/
Choice (9) Checkbox · Radio group · Switch · Combobox · Quantity stepper · Rating · Filter chips · Step slider · Theme toggle choice/
Navigation (5) Tabs · Accordion · Pagination · Breadcrumbs · Tree view navigation/
Overlays (2) Tooltip · Popover overlays/
Feedback (8) Badge · Progress · Skeleton · Empty state · Alert banner · Priority icon · Status icon · Date chip feedback/
Data display (11) Kbd · Avatar · Stat card · Code block · Avatar stack · Leaderboard · Timeline · Sortable list · Audio player · Rolling number · Brand mark data-display/
Charts (4) Grouped bar · Compare bars · Ring stats · Donut chart charts/
Marketing (11) Announcement pill · Copy-prompt box · Newsletter signup · Changelog entry · Metric strip · CTA banner · Feature tabs · Stats band · Sticky signup · Testimonial wall · Waitlist form marketing/
Effects (2) Confetti · Content resolve effects/

Want more? UI Stacks Pro

The free set is a slice of the full library. UI Stacks Pro adds 373 more components, 63 blocks and 10 full app templates (449 components and 74 blocks in all), installed with the same CLI and MCP server once you have a license key. Pro code is not in this repository. See plans at uistacks.dev/pricing.

Contributing

Bug reports and ideas are welcome in Issues. Please read CONTRIBUTING.md before opening a pull request.

License

The components in this repository are MIT licensed. Pro components, blocks and templates are covered by the UI Stacks license.

Credits

Created by Meya Lab Studio and Nazday (@nazmijavierl).

Jelajahi proyek terkait

Memuat…