Skip to content

useNotifications

uitemplate

── useNotifications JSX hook ───────────────────────────────────────────────

Installation

$ bunx termuijs add use-notifications

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

Usage

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

API Reference

useNotifications

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