Skip to content

Commit 07c5a14

Browse files
committed
chore: allow classes to Skeleton component
1 parent 3057ebf commit 07c5a14

File tree

1 file changed

+3
-2
lines changed
  • apps/site/components/Common/Skeleton

1 file changed

+3
-2
lines changed

apps/site/components/Common/Skeleton/index.tsx

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@ import { isValidElement } from 'react';
33

44
import styles from './index.module.css';
55

6-
type SkeletonProps = { hide?: boolean; loading?: boolean };
6+
type SkeletonProps = { hide?: boolean; loading?: boolean; className?: string };
77

88
const Skeleton: FC<PropsWithChildren<SkeletonProps>> = ({
99
children,
10+
className,
1011
hide = false,
1112
loading = true,
1213
}) => {
@@ -26,7 +27,7 @@ const Skeleton: FC<PropsWithChildren<SkeletonProps>> = ({
2627
<span
2728
tabIndex={-1}
2829
aria-hidden="true"
29-
className={styles.skeleton}
30+
className={`${styles.skeleton} ${className}`}
3031
data-inline-skeleton={isValidElement(children) ? undefined : true}
3132
>
3233
{children}

0 commit comments

Comments
 (0)