import type { HTMLAttributes } from 'react';
import type { VariantProps } from 'tailwind-variants';
import { tv } from 'tailwind-variants';
const spinnerVariants = tv({
base: 'inline-block relative opacity-0 animate-delay-1000 animate-fade animate-fill-forwards',
variants: {
size: {
small: 'w-8 h-8',
medium: 'w-12 h-12',
large: 'w-16 h-16',
},
},
});
type SpinnerVariantsProps = VariantProps;
export interface SpinnerProps extends HTMLAttributes {
size?: SpinnerVariantsProps['size'];
};
export function Spinner({
size = 'medium',
className,
}: SpinnerProps) {
return (
);
}