UNPKG

infinity-ui-elements

Version:

A React TypeScript component library with Tailwind CSS design system

25 lines 1.27 kB
import * as React from "react"; declare const buttonVariants: (props?: ({ variant?: "primary" | "secondary" | "tertiary" | null | undefined; color?: "info" | "white" | "primary" | "positive" | "negative" | "notice" | "neutral" | null | undefined; size?: "medium" | "large" | "small" | "xsmall" | null | undefined; isIconOnly?: boolean | null | undefined; isLoading?: boolean | null | undefined; isDisabled?: boolean | null | undefined; isFullWidth?: boolean | null | undefined; } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string; export interface ButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "color"> { variant?: "primary" | "secondary" | "tertiary"; color?: "primary" | "positive" | "negative" | "notice" | "info" | "neutral" | "white"; size?: "xsmall" | "small" | "medium" | "large"; isIconOnly?: boolean; isLoading?: boolean; isDisabled?: boolean; isFullWidth?: boolean; asChild?: boolean; leadingIcon?: React.ReactNode; trailingIcon?: React.ReactNode; } declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>; export { Button, buttonVariants }; //# sourceMappingURL=Button.d.ts.map