UNPKG

@codeworker.br/govbr-tw-react

Version:

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

22 lines (21 loc) 1.13 kB
import type { ComponentPropsWithoutRef, PropsWithChildren } from "react"; import type { VariantProps } from "class-variance-authority"; import buttonVariants from "../Button/variants"; import buttonGroupVariants from "./variants"; type ButtonVariantProps = VariantProps<typeof buttonVariants>; type ButtonGroupVariantProps = VariantProps<typeof buttonGroupVariants>; export type ButtonGroupProps = PropsWithChildren<ComponentPropsWithoutRef<"div"> & ButtonGroupVariantProps & { variant?: ButtonVariantProps["variant"]; density?: ButtonVariantProps["density"]; size?: ButtonVariantProps["size"]; disabled?: boolean; }>; export declare const ButtonGroup: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & ButtonGroupVariantProps & { variant?: ButtonVariantProps["variant"]; density?: ButtonVariantProps["density"]; size?: ButtonVariantProps["size"]; disabled?: boolean | undefined; } & { children?: import("react").ReactNode; } & import("react").RefAttributes<HTMLDivElement>>; export {};