App Bar

AppBar

reaviz ba440c8 885 B Updated

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/tree/main/reachat/app-bar commit ba440c8261

Frequently asked questions

npx skillmds@latest add reaviz/app-bar