@jay-js/ui
Version:
A library of UI components for Jay JS with Tailwind CSS and daisyUI.
20 lines (19 loc) • 681 B
TypeScript
/**
* Configuration options for the useToast hook
*/ type TUseToast = {
/**
* Optional ID of the toast container element
* If provided, toast will be rendered in the element with this ID
*/ toastId?: string;
/**
* @deprecated Use toastId instead
*/ for?: string;
};
/**
* A hook to create and manage toast notifications
*
* @param props - Configuration options for the toast
* @returns A function that creates and displays a toast notification
* @throws Error if no toast container element is found
*/ export declare function useToast({ ...props }?: TUseToast): ({ duration, vertical, horizontal, children, ...props }: TToast<"div">) => void;
export { };