Banner
feedback
Banner: full-width alert with title and body text
Terminal
$termuijs render banner
Installation
$ bunx termuijs add banner
Copies the source into src/components/banner/ and installs @termuijs/core, @termuijs/widgets.
Usage
ts
import { Banner } from '@termuijs/widgets'ts
new Banner(style: Partial<Style> = {}, opts: BannerOptions = {})API Reference
Banner
| Prop | Type | Required | Description |
|---|---|---|---|
variant | StatusVariant | optional | Variant determines border color |
title | string | optional | Title displayed on first line in bold |
body | string | optional | Body text |