12 lines
681 B
TypeScript
12 lines
681 B
TypeScript
import * as React from "react";
|
|
import { type VariantProps } from "class-variance-authority";
|
|
declare const buttonVariants: (props?: ({
|
|
variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | null | undefined;
|
|
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
asChild?: boolean;
|
|
}
|
|
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
export { Button, buttonVariants };
|