@papernote/ui
Version:
A modern React component library with a paper notebook aesthetic - minimal, professional, and expressive
23 lines • 861 B
TypeScript
import { ReactNode } from 'react';
export interface AlertDialogAction {
label: string;
onClick: () => void;
variant?: 'primary' | 'secondary' | 'ghost' | 'danger';
loading?: boolean;
disabled?: boolean;
}
export interface AlertDialogProps {
isOpen: boolean;
onClose: () => void;
variant?: 'info' | 'success' | 'warning' | 'error';
icon?: ReactNode;
title: string;
description?: string;
actions?: AlertDialogAction[];
showCloseButton?: boolean;
closeOnOverlayClick?: boolean;
closeOnEscape?: boolean;
children?: ReactNode;
}
export default function AlertDialog({ isOpen, onClose, variant, icon, title, description, actions, showCloseButton, closeOnOverlayClick, closeOnEscape, children, }: AlertDialogProps): import("react/jsx-runtime").JSX.Element | null;
//# sourceMappingURL=AlertDialog.d.ts.map