23 lines
358 B
TypeScript
Raw Normal View History

2022-03-13 14:40:38 +08:00
import { ReactNode } from 'react'
const Skeleton = ({
children,
className,
}: {
children?: ReactNode
className?: string
}) => {
return (
<div
className={classNames(
'relative animate-pulse bg-gray-100 text-transparent dark:bg-gray-800',
className
)}
>
{children}
</div>
)
}
export default Skeleton