Mail Client Compose
Email composer with recipient chips and autocomplete, rich text, attachments and a signature.
Choose the primitives library your project already uses. Both look the same: your theme, not the variant, controls colors, shape, type and motion.
About this page
What it's for
- Email composer with recipient chips and autocomplete, rich text, attachments and a signature.
- Compose window with schedule send, undo send and drafts that survive a reload.
Includes
- Full screen compose
- Docked compose window
- Minimize and expand
- Recipient chips
- Recipient suggestions
- Cc and bcc
- Rich text body
- Attachments
Works with
- Radix UI and Base UI primitives (pick the one your project uses)
- React 19 and Tailwind CSS 4 in Next.js (App Router), Vite, React Router or TanStack Start, installed with the agentic-ui or shadcn CLI
- Your theme tokens, in light and dark mode
- 1 template or blueprint on this site use it (below)
Install
Included with Agentic UI Kit (one-time license). Install needs your license key: see pricing · connect your project.
Agentic UI CLI
agentic-ui add mail-client-composeInstalls through shadcn and adapts the component to your design tokens.
shadcn CLI
npx shadcn@4.17.0 add @agentic-ui/mail-client-composeUsed in
- Type
- Page
- Variants
- Radix UI and Base UI
- Themes
- Light and dark
- Widths
- Preview it at desktop, tablet and mobile widths above.
- Motion
- Animated, with a reduced-motion fallback
- Sample data
- Ships with sample data in
incoming.ts,people.ts,dsl.ts,seed.ts,story-ops.ts,story-clients.ts,bulk.ts; replace it with your own.
- npm packages
lucide-react- Registry dependencies
editor-rich-text-tiptapform-tag-inputlib-primitives- Files
34 files
- components/agentic-ui/mail-client-compose/screens/compose.tsx
- components/agentic-ui/mail-client-compose/lib/url-state.ts
- components/agentic-ui/mail-client-compose/lib/store.ts
- components/agentic-ui/mail-client-compose/lib/types.ts
- components/agentic-ui/mail-client-compose/lib/reducer.ts
- components/agentic-ui/mail-client-compose/lib/rules.ts
- components/agentic-ui/mail-client-compose/lib/reduce-threads.ts
- components/agentic-ui/mail-client-compose/lib/reduce-settings.ts
- components/agentic-ui/mail-client-compose/lib/clock.ts
- components/agentic-ui/mail-client-compose/lib/reduce-drafts.ts
- components/agentic-ui/mail-client-compose/lib/selectors.ts
- components/agentic-ui/mail-client-compose/lib/snooze.ts
- components/agentic-ui/mail-client-compose/lib/recipients.ts
- components/agentic-ui/mail-client-compose/lib/markdown.ts
- components/agentic-ui/mail-client-compose/lib/compose.ts
- components/agentic-ui/mail-client-compose/data/incoming.ts
- components/agentic-ui/mail-client-compose/data/people.ts
- components/agentic-ui/mail-client-compose/data/dsl.ts
- components/agentic-ui/mail-client-compose/data/seed.ts
- components/agentic-ui/mail-client-compose/data/story-ops.ts
- components/agentic-ui/mail-client-compose/data/story-clients.ts
- components/agentic-ui/mail-client-compose/data/bulk.ts
- components/agentic-ui/mail-client-compose/lib/actions.ts
- components/agentic-ui/mail-client-compose/components/notice.tsx
- components/agentic-ui/mail-client-compose/components/compose/compose-form.tsx
- components/agentic-ui/mail-client-compose/lib/send.ts
- components/agentic-ui/mail-client-compose/components/compose/send-menu.tsx
- components/agentic-ui/mail-client-compose/components/compose/recipient-fields.tsx
- components/agentic-ui/mail-client-compose/components/compose/message-fields.tsx
- components/agentic-ui/mail-client-compose/lib/html.ts
- components/agentic-ui/mail-client-compose/lib/attachments.ts
- components/agentic-ui/mail-client-compose/components/common.tsx
- components/agentic-ui/mail-client-compose/components/attachment-chip.tsx
- components/agentic-ui/mail-client-compose/components/confirm-dialog.tsx
Related components
Mail Client Contacts
Address book with search, favourites and a detail pane with recent conversations.
Details and live previewMail Client Inbox
Three pane email inbox with a folder sidebar, conversation list and reading pane.
Details and live previewMail Client Search
Email search with from, has attachment, date range and label filters and saved searches.
Details and live previewMail Client Settings
Email settings with accounts, signatures, labels and filter rules.
Details and live preview