UNPKG

@starter-ui/core

Version:

This is a UI Components built with the utility classes from Tailwind CSS.

25 lines (24 loc) 947 B
import { PropsWithChildren, ReactNode } from 'react'; export interface Props { id: string; show: boolean; title?: ReactNode | string; footer?: ReactNode; showBackdrop?: boolean; showFooter?: boolean; showCancel?: boolean; showSubmit?: boolean; loadingSubmit?: boolean; submitText?: string; cancelText?: string; contentClassName?: string; backdropClassName?: string; headerClassName?: string; footerClassName?: string; className?: string; onSubmit?: () => void; onHide: () => void; onClickOutside?: () => void; } declare const Modal: ({ id, show, title, footer, showBackdrop, showSubmit, showCancel, showFooter, loadingSubmit, submitText, cancelText, contentClassName, backdropClassName, headerClassName, footerClassName, className, children, onSubmit, onHide, onClickOutside, }: PropsWithChildren<Props>) => import("react/jsx-runtime").JSX.Element; export default Modal;