UNPKG

welcome-ui

Version:

Customizable design system with react, typescript, tailwindcss and ariakit.

15 lines (14 loc) 661 B
import { ComponentPropsWithRef, HTMLAttributes, ReactNode } from 'react'; import { MergeProps } from '../../utils/forwardRefWithAs'; export interface LoaderOptions { children?: ReactNode; size?: Size; variant?: Variant; } export type LoaderProps = MergeProps<LoaderOptions, ElementAttributes>; type ElementAttributes = MergeProps<ComponentPropsWithRef<'div'>, HTMLAttributes<HTMLDivElement>>; type Variant = 'neutral' | 'primary' | 'violet'; export declare const ValidSize: readonly ["xs", "sm", "md", "lg"]; export type LoaderSize = (typeof ValidSize)[number]; export type Size = (Record<never, never> & (number | string)) | LoaderSize; export {};