Documentation menu · AI Agents
GEO

Choose the Right AuraGlass Component

Map common user intents to valid AuraGlass component imports.

#Selection Intent Map

Use valid public names before inventing a component. If a user asks for a product surface rather than a single component, compose several components or start from a recipe.

Choose boring, reliable components first. Add 3D, visualizers, or realtime only when the prompt clearly asks for those capabilities.

Premium SaaS dashboard
AppShell and Sidebar (aura-glass/app-shell), Card, Table and StatCard (aura-glass/data)
Command center or AI search
CommandPalette, Command, Card, Table (aura-glass/data), Tabs
Settings and billing
Card, Button, Tabs, Form, FileUpload
Data-heavy admin
Table, TreeView, FilterBar, ChartFrame (aura-glass/data)
Modal workflow
Dialog, AlertDialog, Sheet, Popover
Media player
MediaControls, ImageViewer, NowPlayingBar (aura-glass/media)
Calendar or scheduling
Calendar (aura-glass/date), Card, Popover
AI product surface
Thread, Message, Composer (aura-glass/ai), Card

#Selection Heuristics

For dashboards, prioritize layout and data density: `AppShell`, `Sidebar`, `Card`, `Table`, and `StatCard`, with `ChartFrame` when the d3 peers are acceptable. For command centers, prioritize keyboard flow: `CommandPalette`, `Tabs`, cards, and tables.

For constrained embeds, docs cards, and previews, compose only the compound parts the bounded surface needs and size the wrapper in app CSS. That prevents viewport-oriented components from escaping their container.

Needs keyboard search
CommandPalette hosting a Command composition (Cmd/Ctrl+K by default)
Needs app chrome
AppShell.Root with Sidebar and TopBar from aura-glass/app-shell
Needs bounded preview
Compose the needed compound parts and size the wrapper in app CSS
Needs media
Use MediaControls from aura-glass/media with a reduced-motion fallback

#Example Composition

A good agent-generated composition has enough props to be believable and bounded. Avoid bare `<Component />` examples when the component normally needs data, state, or compound children.

tsx
import { Card, Command, CommandPalette } from 'aura-glass';
import 'aura-glass/styles.css';

export function AiCommandCenter() {
  return (
    <Card.Root>
      <Card.Body>
        <p>Press Cmd/Ctrl+K to search agents, jobs, and documents.</p>
        <CommandPalette>
          <Command.Root>
            <Command.Input placeholder="Search agents, jobs, and documents..." />
            <Command.List>
              <Command.Group heading="Agents">
                <Command.Item value="run-agent">Run agent</Command.Item>
                <Command.Item value="open-jobs">Open jobs</Command.Item>
              </Command.Group>
            </Command.List>
          </Command.Root>
        </CommandPalette>
      </Card.Body>
    </Card.Root>
  );
}