UNPKG

@codeworker.br/govbr-tw-react

Version:

Biblioteca de componentes React usando Tailwind CSS que implementa o Padrão Digital de Governo.

19 lines (18 loc) 697 B
import { ComponentProps } from "react"; import dialogVariants from "./variants"; import { VariantProps } from "class-variance-authority"; interface DialogProps extends ComponentProps<"dialog">, VariantProps<typeof dialogVariants> { toggleDialog: (e: any) => void; persist?: boolean; closeOnEsc?: boolean; } interface DialogComponent extends React.ForwardRefExoticComponent<DialogProps & React.RefAttributes<HTMLDialogElement>> { Header: typeof DialogHeader; Main: typeof DialogMain; Footer: typeof DialogFooter; } declare const DialogHeader: any; declare const DialogMain: any; declare const DialogFooter: any; declare const Dialog: DialogComponent; export default Dialog;