Header
The OpenAI Codex banner with version, working directory and greeting.
import { CodexHeader } from "../components/codex-header";
import { CodexTerminal } from "../components/codex-terminal";
import { CODEX_DEMO_SESSION } from "../constants/codex-demo";
export default function CodexHeaderExample() {
return (
<div className="w-full p-6">
<CodexTerminal title={CODEX_DEMO_SESSION.title}>
<CodexHeader {...CODEX_DEMO_SESSION.header} />
</CodexTerminal>
</div>
);
}
$ bunx --bun shadcn@latest add @notra/codex-headerCodexHeader renders the session banner: a blue >_, the bold product name with its version, the working directory under it, and a blue greeting line.
| Prop | Default | Description |
|---|---|---|
version |
0.159.2 |
Shown dimmed as (v0.159.2). |
cwd |
~/acme/web |
The working directory under the name. |
greeting |
Anything interesting on the docket? |
Blue line below the banner. Pass null to hide it. |
Used in
Codex
A full recreation of an OpenAI Codex CLI session, from the banner to the pinned prompt.