affectui
UI for AI agents. React components for what agents do – agent trees, tool calls, traces, handoffs and approvals – and for the rest of your app. One file each, i
What is affectui?
UI for AI agents. React components for what agents do – agent trees, tool calls, traces, handoffs and approvals – and for the rest of your app. One file each, install with shadcn or via MCP. Free and open source.
Overview of affectui
What it is
affectUI is a library of handcrafted React components, illustrations and motion effects for AI products and modern SaaS apps. Every item is one .tsx file with its styles inside. It does not require Tailwind, CSS setup or animation library. Install with the shadcn CLI or copy the file. The library is free and open source under the MIT license.
Key features
- One file per component: a single .tsx file with styles included.
- Motion that respects prefers-reduced-motion.
- Dark mode built in: switches when an ancestor has class dark or data-theme='dark'.
- Accessible by default: real buttons, labels, keyboard support and live regions.
- Responsive: uses container queries.
Use cases
- Adding UI components like buttons, comment threads, email drafts, filter menus, OTP inputs and profile menus to React applications.
- Including illustrations and motion effects for AI products and SaaS apps.
- Building modern interfaces with minimal setup.
Getting started
Requirements: React 19 (with or without TypeScript) and a React setup like Next.js, Vite, Remix or plain React. The @/* import alias is needed if using the shadcn CLI.bashnpx shadcn@latest add https://www.affectui.com/r/reaction-bar.jsonAlternatively, copy and paste a file from the repository's components/, illustrations/ or motion/ folder.
License and pricing
MIT license. The library is free and open source. Some items (marked Pro) are part of affectUI Pro and not in the repository.
Based on the project's public README and repository metadata.