UNPKG

@konstructio/ui

Version:

A set of reusable and customizable React components built for konstruct.io

16 lines (15 loc) 646 B
import { VariantProps } from 'class-variance-authority'; import { HTMLAttributes, ReactNode } from 'react'; import { Props as TypographyProps } from '../../../components/Typography/Typography.types'; import { Theme } from '../../../domain/theme'; import { spinnerVariants } from './Spinner.variants'; export type Props = HTMLAttributes<HTMLDivElement> & VariantProps<typeof spinnerVariants> & { spinnerClassName?: string; textClassName?: string; textVariant?: TypographyProps['variant']; text?: string | ReactNode; srLabel?: string; theme?: Theme; }; /** @deprecated Use Props instead */ export type SpinnerProps = Props;