UNPKG

@lifespikes/ui

Version:
17 lines (16 loc) 849 B
import * as React from 'react'; import { ReactNode } from 'react'; import { type VariantProps } from 'class-variance-authority'; declare const buttonVariants: (props?: ({ variant?: "unstyled" | "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | "default-light" | null | undefined; size?: "sm" | "lg" | "default" | "icon" | null | undefined; } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string; export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> { asChild?: boolean; leftIcon?: ReactNode; rightIcon?: ReactNode; className?: string; isLoading?: boolean; } declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>; export { Button, buttonVariants };