Alert
feedback
Alert: full-width status message box with a colored border and an icon prefix
Terminal
$termuijs render alert
Installation
$ bunx termuijs add alert
Copies the source into src/components/alert/ and installs @termuijs/core, @termuijs/widgets.
Usage
ts
import { Alert } from '@termuijs/widgets'ts
new Alert(opts: AlertOptions, style: Partial<Style> = {})API Reference
Alert
| Prop | Type | Required | Description |
|---|---|---|---|
variant | StatusVariant | optional | Variant determines icon and border color |
message | string | required | The message to display |