Skip to content

notifications

uitemplate

Global singleton accessor

Installation

$ bunx termuijs add notifications

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

Usage

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

API Reference

notifications

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