๐ฃ 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
| Prop | Type | Default | Description |
|---|---|---|---|
title | string | โ | Bold title text |
subtitle | string | โ | Optional dimmed subtitle rendered inline |
icon | string | "โ" | 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" />