UNPKG

another-ui

Version:

as the name says, it's another ui library for React built on Tailwind & Shadcn

20 lines (19 loc) 808 B
import type { VariantProps } from 'class-variance-authority'; import { type ButtonHTMLAttributes, type ReactNode } from 'react'; import { getButtonClasses } from './libs/getButtonClasses'; export type ButtonVariants = VariantProps<typeof getButtonClasses>; export type ButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & ButtonVariants & { asChild?: boolean; prefixIcon?: ReactNode; suffixIcon?: ReactNode; loading?: boolean; loadingMessage?: string; }; declare const Button: import("react").ForwardRefExoticComponent<ButtonHTMLAttributes<HTMLButtonElement> & ButtonVariants & { asChild?: boolean; prefixIcon?: ReactNode; suffixIcon?: ReactNode; loading?: boolean; loadingMessage?: string; } & import("react").RefAttributes<HTMLButtonElement>>; export { Button };