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