2022-05-12 02:45:43 +08:00

24 lines
378 B
TypeScript

import { ReactNode } from 'react'
import cx from 'classnames'
const Skeleton = ({
children,
className,
}: {
children?: ReactNode
className?: string
}) => {
return (
<div
className={cx(
'relative animate-pulse bg-gray-100 text-transparent dark:bg-gray-800',
className
)}
>
{children}
</div>
)
}
export default Skeleton