UNPKG

@kloudlite/design-system

Version:

A design system for building ambitious products.

25 lines (24 loc) 1.01 kB
import { ComponentProps, ReactNode } from 'react'; import { IButton } from '../atoms/button'; import { ChildrenProps } from '../types'; interface IPopupButton extends IButton { closable?: boolean; } interface IPopup extends ChildrenProps { show?: boolean; onOpenChange?: (val: any) => void; backdrop?: boolean; className?: string; } declare const Popup: { Root: ({ show, onOpenChange, children, backdrop, className, }: IPopup) => import("react/jsx-runtime").JSX.Element; Header: ({ children, showclose }: any) => import("react/jsx-runtime").JSX.Element; Content: ({ children, className, }: { children: ReactNode; className?: string; }) => import("react/jsx-runtime").JSX.Element; Footer: ({ children }: ChildrenProps) => import("react/jsx-runtime").JSX.Element; Button: (props: IPopupButton) => import("react/jsx-runtime").JSX.Element; Form: (props: ComponentProps<"form">) => import("react/jsx-runtime").JSX.Element; }; export default Popup;