Skip to content

NotificationStore

uitemplate

── NotificationStore (singleton) ──────────────────────────────────────────

Installation

$ bunx termuijs add notification-store

Copies the source into src/components/notification-store/ and installs @termuijs/core, @termuijs/jsx, @termuijs/widgets.

Usage

ts
import { NotificationStore } from '@termuijs/ui'
ts
new NotificationStore(options: NotificationCenterOptions = {})

API Reference

NotificationStore

PropTypeRequiredDescription
position'top-right' | 'bottom-right' | 'top-left' | 'bottom-left'optional
maxVisiblenumberoptional
widthnumberoptional
#template#notification-store