alepha@docs:~/docs/reference/react-hooks$
cat useToast.md1 min read
Last commit:
#useToast
#Import
typescript
1import { useToast } from "@alepha/ui/styles";
#Overview
Use this hook to access the Toast Service for showing notifications.
#Examples
tsx
1const toast = useToast();2toast.success({ message: "Operation completed successfully!" });3toast.error({ title: "Error", message: "Something went wrong" });