LoadingAnimation
LoadingAnimation is a loading animation, useful when waiting for data to load.
'use client'import { LoadingAnimation } from '@nerdfish/ui'export function LoadingAnimationExample() {return <LoadingAnimation />}
Usage
import { LoadingAnimation } from '@nerdfish/ui'
<LoadingAnimation />
Variants
'use client'import {Card,CardContent,CardHeader,CardTitle,LoadingAnimation,type LoadingAnimationProps,} from '@nerdfish/ui'function AnimationVariant({variant,}: {variant: LoadingAnimationProps['variant']}) {return (<Card><CardHeader><CardTitle>{variant}</CardTitle></CardHeader><CardContent className="p-md flex justify-center"><LoadingAnimation variant={variant} /></CardContent></Card>)}export function LoadingAnimationVariantsExample() {return (<div className="gap-md grid w-full grid-cols-2 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4"><AnimationVariant variant="fish" /><AnimationVariant variant="classic" /><AnimationVariant variant="square" /></div>)}