Skip to content

Banner

widgetsfeedback

Banner: full-width alert with title and body text

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

PropTypeRequiredDescription
variantStatusVariantoptionalVariant determines border color
titlestringoptionalTitle displayed on first line in bold
bodystringoptionalBody text
#feedback#banner