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

PropTypeDefaultDescription
path*string-Channel path (e.g. '!necessary/example-app')
channelType"auto" | "custom""auto"Controls path color (orange for auto, green for custom)
topicstring-Channel topic text
actionsComponentChildren-Action buttons (use ChatHeaderAction)

Examples

Auto Channel with Actions

!necessary/example-appFull-stack web application with i18n, CI, and plugin support ยท 3 open PRs
๐Ÿ“Œ Pins๐Ÿ” SearchIRC client โ†—
<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" />