Files
shumai/packages/webui/components/ui/skeleton.tsx
T

14 lines
279 B
TypeScript
Raw Normal View History

import { cn } from '@/ui/lib/utils'
2026-05-19 16:05:09 +08:00
function Skeleton({ className, ...props }: React.ComponentProps<'div'>) {
2026-05-19 16:05:09 +08:00
return (
<div
data-slot="skeleton"
className={cn('animate-pulse rounded-md bg-accent', className)}
2026-05-19 16:05:09 +08:00
{...props}
/>
)
2026-05-19 16:05:09 +08:00
}
export { Skeleton }