UNPKG

ds-smart-ui

Version:

Smart UI is a React component library that helps you build accessible and responsive web applications.

30 lines (28 loc) 1.43 kB
import { VariantProps } from 'class-variance-authority'; import { ButtonHTMLAttributes, ReactNode } from 'react'; import { ButtonColorTypes, ButtonRoundedTypes, ButtonVariantTypes, TabSizeTypes } from '../../../types/button-types'; declare const TaButtonVariants: (props?: ({ variant?: "link" | "transparent" | "contained" | "outlined" | "soft" | null | undefined; color?: "dark" | "light" | "primary" | "secondary" | "success" | "danger" | "warning" | "info" | null | undefined; size?: "sm" | "md" | "lg" | "xl" | null | undefined; rounded?: "sm" | "md" | "lg" | "none" | "full" | null | undefined; isIcon?: boolean | null | undefined; fullWidth?: boolean | null | undefined; } & import('class-variance-authority/dist/types').ClassProp) | undefined) => string; export interface TabButtonProps extends ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof TaButtonVariants> { variant: ButtonVariantTypes; size?: TabSizeTypes; children: ReactNode; rounded?: ButtonRoundedTypes; href?: string; color?: ButtonColorTypes; startIcon?: ReactNode; endIcon?: ReactNode; isLoading?: boolean; isActive?: boolean; fullWidth?: boolean; labelPosition?: "left" | "right" | "center"; id?: string; } declare const TabButton: import('react').ForwardRefExoticComponent<TabButtonProps & import('react').RefAttributes<HTMLButtonElement>>; export default TabButton;