@codeworker.br/govbr-tw-react
Version:
Biblioteca de componentes React usando Tailwind CSS que implementa o Padrão Digital de Governo.
21 lines (20 loc) • 750 B
TypeScript
import { ComponentProps } from "react";
import dialogVariants from "./variants";
import { VariantProps } from "class-variance-authority";
interface DialogProps extends ComponentProps<"dialog">, VariantProps<typeof dialogVariants> {
toggleDialog: () => void;
persist?: boolean;
closeOnEsc?: boolean;
rootClassName?: string;
overlayClassName?: string;
}
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;