ConjureUI
Get StartedDocumentation

Conjure Toast


component.tsx

import { useAlert } from "@/components/ConjureToast";

export default function Page() {
    const showAlert = useAlert();
    
    const showSuccessToast = () =>
    {
        showAlert("This is a success message!", "success");
    }

    return (
        <button onClick={showSuccessToast}>
            Show Success 
        </button>
    );
}