ink-ui

📣 Banner

Full-width title block — ideal as an app header at the top of a screen.

<Banner> renders a full-width title block with a leading accent-coloured icon, a bold title, and an optional dimmed subtitle rendered inline. Use it as the app header at the top of a screen.

import { Banner } from "@kud/ink-ui";

🔧 Props

PropTypeDefaultDescription
titlestring—Bold title text
subtitlestring—Optional dimmed subtitle rendered inline
iconstring"◆"Leading icon rendered in accent colour

The icon is coloured with colors.accent (#FF8C00), and the component adds a bottom margin of one row so it spaces away from the content below.

💡 Examples

<Banner title="Deploy Tool" subtitle="production" icon="🚀" />
<Banner title="My CLI" subtitle="v1.0.0" />

On this page