Use shared chat UI in Foundry

This commit is contained in:
Nathan Flurry 2026-03-10 22:30:38 -07:00
parent b609f1ab2b
commit 0ec470d494
8 changed files with 316 additions and 224 deletions

View file

@ -225,4 +225,11 @@ export function ConversationPane({
}
```
Useful `ChatComposer` props:
- `className` and `classNames` for external styling
- `inputRef` to manage focus or autoresize from the consumer
- `textareaProps` for lower-level textarea behavior
- `allowEmptySubmit` when the submit action is valid without draft text, such as a stop button
Use `transcriptProps` and `composerProps` when you want the shared composition but still need custom rendering or behavior. Use `transcriptClassNames` and `composerClassNames` when you want styling hooks for each subcomponent.