We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3057ebf commit 07c5a14Copy full SHA for 07c5a14
apps/site/components/Common/Skeleton/index.tsx
@@ -3,10 +3,11 @@ import { isValidElement } from 'react';
3
4
import styles from './index.module.css';
5
6
-type SkeletonProps = { hide?: boolean; loading?: boolean };
+type SkeletonProps = { hide?: boolean; loading?: boolean; className?: string };
7
8
const Skeleton: FC<PropsWithChildren<SkeletonProps>> = ({
9
children,
10
+ className,
11
hide = false,
12
loading = true,
13
}) => {
@@ -26,7 +27,7 @@ const Skeleton: FC<PropsWithChildren<SkeletonProps>> = ({
26
27
<span
28
tabIndex={-1}
29
aria-hidden="true"
- className={styles.skeleton}
30
+ className={`${styles.skeleton} ${className}`}
31
data-inline-skeleton={isValidElement(children) ? undefined : true}
32
>
33
{children}
0 commit comments