ChatInput
The composer: ChatPromptComposer with mentions, commands, attachments and send or stop; ChatPromptQueue; ChatModelSelect.
Installation
Import from @gaudi/design-system. Load @gaudi/design-system/global.css once and add transpilePackages: ['@gaudi/design-system'] in Next.js.
Copy an example into your project with the shadcn CLI: npx shadcn@latest add https://design.gaudi.site/r/prompt-composer-mentions-attachments.json.
Usage
Examples
Chat composer: Mentions, commands and attachments
Chat composer: Model and effort
Chat composer: Queue follow-ups while a reply streams
API
Accessibility
The prompt is a labelled combobox; icon buttons and queue actions are named. The model trigger names the current model; the searchable list is a labelled combobox with grouped options and the current one checked. The context meter names the share used and opens its breakdown on press. The options switches are named and the trigger lists the options that are on.