AI Chat
Not in Production
This set of components assembles to form our AI chat experiences. Note thatd differences between chat message styles differentiate the TA (Teacher) experience from the Tutor (student) experience.
Building Blocks
The individual building blocks that make up the AI chat UI. These components should not typically be used outside of the chat experience.
Message
File Chip
Remove Button
Input
Can you suggest a warm-up activity for my Unit 3 loops lesson?
Content
Layout & behavior
Props — AI Chat Message
| Prop | Type | Description |
|---|---|---|
context | "TA" | "Tutor" | — |
author | "Human" | "AI" | — |
children | ReactNode | Message body. |
fileUploads | ReactNode | Optional file chip row above an AI bubble. |
hasActionRow | boolean | — |
hasLeftActions | boolean | — |
hasDownload | boolean | Download control in the left action group. |
hasRightActions | boolean | — |
hasFlagging | boolean | — |
feedbackLabel | ReactNode | — |
onCopy | () => void | — |
onDownload | () => void | — |
helpfulValue | "up" | "down" | null | — |
onHelpfulChange | (value: "up" | "down" | null) => void | — |
flagged | boolean | — |
onFlagChange | (flagged: boolean) => void | — |