affectUI › Screens › App screens
Assistant Home
AI assistant start page: greeting, prompt box with tools, connected apps and suggestions.
Part of affectUI Pro. Install: npx shadcn@latest add https://www.affectui.com/r/assistant-home.json · Import from @/components/ui/assistant-home
When to use
- The first screen of an AI assistant or copilot
- A start page that leads straight into a prompt
When not to use
- Apps where the chat is not the main action
Usage
import { AssistantHomeScreen } from "@/components/ui/assistant-home";
export default function Page() {
return <AssistantHomeScreen workspace="Acme" user={{ name: "Alex Morgan" }} onNavigate={(label) => router.push(routes[label])} />;
}Props
| Name | Type | Default | Description |
|---|---|---|---|
onNavigate | (label: string) => void | Called with the label of a sidebar item or project | |
workspace | string | "Acme" | Workspace name in the sidebar |
user | { name: string; avatar?: string } | { name: "Alex Morgan" } | Account at the bottom of the sidebar |
className | string | Extra class on the root |
Accessibility
- Sidebar items, projects and the collapse toggle are real buttons with labels
- Icons are decorative and hidden from screen readers
Responsive
- Fills its container – give it the full viewport height in your app
- Dark mode built in: switches when an ancestor (usually <html>) has the class dark or data-theme="dark"; colors are CSS variables on .ui-as
Requirements
- React 19
- @hugeicons/react
- @hugeicons/core-free-icons
- App Shell (installed with it)