Skip to content

Commit

Permalink
fix(fuselage): Skeleton missing HTML attributes in type (#1495)
Browse files Browse the repository at this point in the history
  • Loading branch information
dougfabris authored Dec 10, 2024
1 parent 242af51 commit b044c3b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/empty-ads-heal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@rocket.chat/fuselage': patch
---

fix(fuselage): Skeleton missing HTML attributes in type
4 changes: 3 additions & 1 deletion packages/fuselage/src/components/Skeleton/Skeleton.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import { AllHTMLAttributes } from 'react';

import { cx, cxx } from '../../helpers/composeClassNames';
import { StylingBox, StylingBoxProps } from '../Box';

type SkeletonProps = Omit<StylingBoxProps, 'children'> & {
variant?: 'text' | 'rect' | 'circle';
};
} & AllHTMLAttributes<HTMLSpanElement>;

const Skeleton = ({ variant = 'text', ...props }: SkeletonProps) => (
<StylingBox {...props}>
Expand Down

0 comments on commit b044c3b

Please sign in to comment.