ChatHeader
Top bar of the chat pane with channel path, topic text, and action buttons. Also exports ChatHeaderAction for the button style.
Import
import { ChatHeader } from "@gumtree/ui/chat/ChatHeader" ; Props
| Prop | Type | Default | Description |
|---|---|---|---|
path* | string | - | Channel path (e.g. '!necessary/example-app') |
channelType | "auto" | "custom" | "auto" | Controls path color (orange for auto, green for custom) |
topic | string | - | Channel topic text |
actions | ComponentChildren | - | Action buttons (use ChatHeaderAction) |
Examples
Auto Channel with Actions
!necessary/example-appFull-stack web application with i18n, CI, and plugin support ยท 3 open PRs
< ChatHeader
path = "!necessary/example-app"
topic = "Full-stack web application with i18n, CI, and plugin support ยท 3 open PRs"
actions = { < >
< ChatHeaderAction > ๐ Pins </ ChatHeaderAction >
< ChatHeaderAction > ๐ Search </ ChatHeaderAction >
< ChatHeaderAction href = "#" > IRC client โ </ ChatHeaderAction >
</ > }
/> Custom Channel
#designUI mockups, prototypes, and design-system discussion
< ChatHeader path = "#design" channelType = "custom" topic = "UI mockups, prototypes, and design-system discussion" />