import classNames from 'classnames'; import { FC, WebCellProps } from 'web-cell'; import { TextColor } from '../type'; export interface SpinnerProps extends WebCellProps { variant?: TextColor; size?: 'sm'; animation?: 'border' | 'grow'; } export const Spinner: FC = ({ className, variant, size, animation = 'border', children = 'Loading...', ...props }) => (
{children}
); export interface SpinnerBoxProps extends SpinnerProps { cover?: boolean; } export const SpinnerBox: FC = ({ className = '', cover, variant, size, animation, role, children, ...props }) => (
{children} {cover && (
)}
);