Skip to content
Nerdfishui
Esc
navigateopen⌘Jpreview

Skeleton

Skeleton is a placeholder to show a loading state and the expected shape of a component.

'use client'

import { Card, CardContent } from '@nerdfish/react/card'
import { Skeleton } from '@nerdfish/react/skeleton'

export default function SkeletonExample() {
	return (
		<Card className="space-y-friends w-62.5">
			<CardContent>
				<Skeleton className="rounded-[calc(var(--radius-base)-theme(padding.best-friends))]! h-24" />
				<Skeleton className="h-3 w-3/5" />
				<Skeleton count={2} className="h-3 w-4/5" />
			</CardContent>
		</Card>
	)
}