YuhuanStudioYunUIDocs
Chat

Chat Header

A responsive, wrapping header shell with left / status / actions slots.

A responsive chat header shell with left, status and actions slots. Its row can wrap on narrow layouts. Compose a title, a model selector (e.g. YunUI ModelSelect), mode chips or toggles into the slots — or pass children to override the slot layout entirely.

Import

tsx1 line
import { ChatHeader } from "@yuhuanowo/yunui/chat";

Example

ChatHeader

New chat
gpt-4o

Props

PropTypeDefaultDescription
actionsReactNode—Right cluster — theme toggle, workspace toggle, actions, …
childrenReactNode—Overrides the slot layout entirely when provided.
classNamestring—
leftReactNode—Left cluster — sidebar toggle, title, model selector, …
statusReactNode—Center status cluster — mode indicator, feature chips, … (optional).

On this page