Skip to content

Toast

Toast notifications.

Import

tsx
import { ZToast, useToast } from "@zurto/ui";

Usage

tsx
const { toast } = useToast();

toast({
  title: "Success!",
  description: "Your changes have been saved.",
  variant: "success",
});

Props

PropTypeDefaultDescription
titlestringToast title
descriptionstringToast message
variant'default' | 'success' | 'error' | 'warning''default'Style
durationnumber5000Auto-dismiss time

Released under the MIT License.