App Bar

AppBar

reaviz Updated 4 repo stars

File contents

AppBar

Top header bar for the chat. Reads the theme.appbar class string and renders arbitrary content.

Import

import { AppBar } from 'reachat';

Props

Prop Type Default Description
content ReactNode — Content to display
theme ChatTheme chatTheme Per-instance theme override

Usage

<AppBar
  content={
    <div className="flex w-full items-center justify-between">
      <Logo />
      <UserMenu />
    </div>
  }
/>

AppBar resolves its theme via useComponentTheme<ChatTheme>('chat', customTheme) from reablocks, so it picks up the same theme provider as the rest of the chat.

Render it outside <Chat> (as a sibling header) or inside the panel — it has no context dependency.

Theme key

theme.appbar

reaviz/skills commit ba440c8261

Frequently asked questions

npx get-skill add reaviz/app-bar