A fast and lightweight library for Angular 18+, also compatible with Ionic projects (based on Angular), that makes handling alerts and notifications effortless. Styled with Tailwind but built for production with a fully agnostic approach using Shadow DOM.
"Fast alerts, no hassle and powered by Shadow DOM!"
You can try the Live Demo
npm i ng-fast-toast@latest
NgFastToastComponent
:import { Component } from "@angular/core";
import { NgFastToastComponent } from "ng-fast-toast";
@Component({
selector: "app-root",
standalone: true,
imports: [NgFastToastComponent],
templateUrl: "./app.component.html",
})
export class AppComponent {}
<ng-fast-toast>
selector:<ng-fast-toast></ng-fast-toast>
A log message đ ng-fast-toast initialized correctly with default config.
is print in the browser console.
toast = inject(NgFastToastService);
ngOnInit() {
this.toast.success({content: 'ng-fast-toast are ready!'});
}
Now you can showcase the success
notification example đ.
This library is fully compatible with your Ionic project (based on Angular). You can try the Ionic test project to see the configuration and usage of the library.
You can find the full configuration and additional details in the complete documentation site.
Copyright Š 2025 rperezll (https://github.com/rperezll)