UNPKG

commonux2

Version:

A collection of styled components for use in ABB projects, designed for React and Next.js. It features TypeScript support, integrates Lucide icons, and is built on Radix primitives with Tailwind CSS.

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