Skip to content

Grok Header

The grok-like opening: the top bar, then a card with the braille dot mark, the name and version, the news and a menu with its keys, and a tip.

On this page

Examples

Drawn for this look alone. <CliHeader preset="grok-like" /> draws this part too, so the generic API keeps working. Every part in all eight looks is on Agent CLI.

Installation

npx knowns-ui@latest add agent-cli-grok
For Claude Code, Cursor or Codex: installs it and wires the props to your own data.

Props

agent / model / cwd
string
Who is running, on which model, in which folder.
mark
ReactNode
Defaulta terminal glyph
The small mark beside the name in a header line.
meta
ReactNode
Extra text where the look prints it, such as the grok-like top bar.
product / version
string
Defaultthe agent / per look
The product name and version.
headline / subhead / tips / menu / commands
per look
Defaultmade-up defaults
The news, tips, launch menu or command list this look opens with.
logo
ReactNode
Defaultthe look's own mark
Replace the large mark with your own.

When to use

When to use

  • The launch screen of a grok-like demo.

When not to use

  • The whole session with the header in place: use Grok Session.

Using with AI

Use Copy page for AI above to give your assistant this page, Copy prompt under the install command to have it installed and wired to your data, or connect the Knowns UI MCP server and just ask:

  • Add the Knowns UI Grok Header to my app and wire it to my own data.
  • I need the launch screen of a grok-like demo. Set that up with the Knowns UI Grok Header.
  • Which Grok Header props do I need for a minimal setup? Show me a short example.

With the server connected, your assistant calls get_component({ name: "grok-header" }) and search_docs({ query: "grok header" }).

Need help?

Stuck on Grok Header, or found something off? We read every message.