@trail-ui/react
Version:
21 lines (18 loc) • 893 B
TypeScript
import * as react_jsx_runtime from 'react/jsx-runtime';
import * as react from 'react';
import { SpinnerVariantProps } from '@trail-ui/theme';
declare const SPINNERS: {
bars: (props: react.SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
dots: (props: react.SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
ring: (props: react.SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
spin: (props: react.SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
};
interface SpinnerProps extends Omit<React.ComponentPropsWithoutRef<'svg'>, 'display' | 'opacity' | 'color'>, SpinnerVariantProps {
/**
* Spinner appearance
* @default ring
*/
variant?: keyof typeof SPINNERS;
}
declare const _Spinner: react.ForwardRefExoticComponent<SpinnerProps & react.RefAttributes<SVGSVGElement>>;
export { _Spinner as Spinner, SpinnerProps };