NotificationBadge
display
NotificationBadge - a small count label rendered at a corner position
Terminal
$termuijs render notification-badge
Installation
$ bunx termuijs add notification-badge
Copies the source into src/components/notification-badge/ and installs @termuijs/core, @termuijs/widgets.
Usage
ts
import { NotificationBadge } from '@termuijs/widgets'ts
new NotificationBadge(opts: NotificationBadgeOptions = {}, style: Partial<Style> = {})API Reference
NotificationBadge
| Prop | Type | Required | Description |
|---|---|---|---|
count | number | optional | Notification count to display |
position | BadgePosition | optional | Corner position for the badge |