@ecsbase/toaster
v0.2.0
Published
@ecsbase/toaster — reusable building block.
Downloads
147
Readme
@ecsbase/toaster
Lightweight toast-notification service with configurable position.
Install
pnpm add @ecsbase/toasterPeer dependencies
@angular/common^20.0.0@angular/core^20.0.0
Quick start
import { provideToasterConfig, ToasterService } from '@ecsbase/toaster';
providers: [provideToasterConfig({ position: 'top-right', defaultDurationMs: 3500 })];
inject(ToasterService).show('Saved!', 'success');Playground
Live demo: /toaster — run pnpm start:playground then visit http://localhost:4200/toaster.
License
MIT — see LICENSE at the repository root.
