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