Installation
Preview
Source
Adapted from slev12397/beautiful-ui under the MIT License. Commercial icons were replaced and demo analytics were removed; attribution remains bundled with the component foundation.
API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
| loop | boolean | false | Restarts after completion. |
| fill | boolean | false | Fills the parent width. |
| onDone | () => void | — | Called after streaming completes. |
| onAction | (action: StreamingTextAction) => void | — | Handles response actions. |
| onFollowUp | (prompt: string) => void | — | Handles a suggested follow-up. |
| onSourcesOpenChange | (open: boolean) => void | — | Reports source disclosure state. |