Ownable Install
Install Toast from the TailNG registry with the shadcn-like flow. This copies source files into your app so your team can own and evolve the implementation locally.
Install from registry
Run from your Angular workspace root.
pnpm
pnpm dlx tailng add toastnpx
npx tailng add toastGenerated files
The command scaffolds local files under src/app/tailng-ui/toast.
src/app/tailng-ui/toast/tng-toast-primitive.tssrc/app/tailng-ui/toast/tng-toast.tssrc/app/tailng-ui/toast/tng-toast.htmlsrc/app/tailng-ui/toast/tng-toast.csssrc/app/tailng-ui/toast/index.ts
Import in your feature module/component
Imports
import { TngToast, TngToastViewportPrimitive, TngToastItemPrimitive } from './tailng-ui/toast';
Usage
Template usage
<tng-toast #toast position="bottom-right" (dismissedWithReason)="onToastDismiss($event)"></tng-toast>
<tng-button
tone="success"
(click)="toast.show('Saved changes to the release checklist.', { title: 'Saved', tone: 'success' })"
>
Show success toast
</tng-button>