@veracity/vui
Version:
Veracity UI is a React component library crafted for use within Veracity applications and pages. Based on Styled Components and @xstyled.
28 lines (27 loc) • 1.11 kB
TypeScript
import { ThemingProps } from "../theme/types.js";
import "../theme/index.js";
import { BoxProps } from "../box/box.types.js";
import "../box/index.js";
import { ReactNode } from "react";
//#region src/spinner/spinner.types.d.ts
type SpinnerProps = Omit<BoxProps, 'size' | 'variant'> & Omit<ThemingProps<'Spinner'>, 'size'> & {
/** Children are disabled for this component. */
children?: never;
/** @deprecated use 'variant' instead */
colorScheme?: 'blue' | 'grey' | 'prussian';
/** Color of the 'empty' part of the circle. */
emptyColor?: string | 'transparent';
/** Amount of time needed to make a full rotation. */
speed?: 'normal' | 'fast' | 'slow';
/** Theme size or a number defining height and width. */
size?: ThemingProps<'Spinner'>['size'] | number;
/** Displays given text next to the spinner. */
text?: ReactNode;
/** Text placement relative to the spinner. */
textPosition?: 'bottom' | 'left' | 'right' | 'top';
/** Thickness of the spinner circle in pixels. */
thickness?: number;
};
//#endregion
export { SpinnerProps };
//# sourceMappingURL=spinner.types.d.ts.map