Toast
Themed toast queue: a service-enqueued notification rendered into a named viewport landmark.
Import
#importAdd the symbol to your component's imports array. The walkthrough below shows the most common usages — copy & tweak.
import { KjToastWrapper } from '@kouji-ui/components';Playground
#playgroundvariant
<kj-button (click)="show()">Show toast</kj-button>
<kj-toast-viewport />
// In your component:
private readonly toast = inject(KjToastService);
show(): void {
this.toast.show('Saved your changes.', { variant: 'default' });
}