@chatui/core
Version:
The React library for Chatbot UI
33 lines (32 loc) • 902 B
TypeScript
import React from 'react';
import { ButtonProps } from '../Button';
type BaseModalProps = {
baseClass?: string;
active?: boolean;
className?: string;
title?: React.ReactNode;
titleId?: string;
showClose?: boolean;
autoFocus?: boolean;
backdrop?: boolean | 'static';
actions?: ButtonProps[];
vertical?: boolean;
bgColor?: string;
bodyAlign?: 'left' | 'center';
onClose?: () => void;
onBackdropClick?: () => void;
children?: React.ReactNode;
};
export type ModalProps = BaseModalProps & {
avatar?: string;
};
export type PopupProps = BaseModalProps & {
subTitle?: string;
logo?: string;
actionsDesc?: React.ReactNode;
height?: number | string;
overflow?: boolean;
};
type InternalProps = BaseModalProps & ModalProps & PopupProps;
export declare const Base: (props: InternalProps) => React.ReactPortal | null;
export {};