Files
MattrixwvReactComponents/lib/types/Modal.d.ts

33 lines
736 B
TypeScript

export type ModalBackgroundType = "darken" | "lighten" | "blur" | "darken-blur" | "lighten-blur" | "darken-blur-radial" | "lighten-blur-radial" | "transparent" | "none";
export interface ModalHeaderProps {
onClose?: () => void;
className?: string;
children: React.ReactNode;
}
export interface ModalFooterProps {
className?: string;
children: React.ReactNode;
}
export interface ModalBodyProps {
className?: string;
children: React.ReactNode;
}
export interface ModalProps {
display: boolean;
onClose: () => void;
className?: string;
backgroundType?: ModalBackgroundType;
top?: boolean;
children: React.ReactNode;
}
export interface ModalBackgroundProps {
backgroundType?: ModalBackgroundType;
close: () => void;
}