Preparing search index...

    Props for the Alert component

    type AlertProps = {
        testId: string;
        isVisible: boolean;
        title: string;
        content: string;
        confirmText: string;
        cancelText?: string;
        onClose: () => void;
        onConfirm?: () => void;
        onCancel?: () => void;
    }
    Index

    Properties

    testId: string

    Unique identifier for testing and accessibility

    isVisible: boolean

    Whether the dialog is currently visible

    title: string

    Title text displayed at the top of the dialog

    content: string

    Main content text of the dialog

    confirmText: string

    Text for the primary confirm button

    cancelText?: string

    Optional text for the cancel button (enables dual-action layout)

    onClose: () => void

    Callback fired when dialog is dismissed

    onConfirm?: () => void

    Optional callback fired when confirm button is pressed

    onCancel?: () => void

    Optional callback fired when cancel button is pressed