We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 672e93c commit d8c1492Copy full SHA for d8c1492
src/Skeleton.tsx
@@ -18,8 +18,9 @@ function styleOptionsToCssProperties({
18
direction,
19
duration,
20
enableAnimation = defaultEnableAnimation,
21
-}: SkeletonStyleProps & { circle: boolean }): CSSProperties {
22
- const style: CSSProperties & Record<`--${string}`, string> = {};
+}: SkeletonStyleProps & { circle: boolean }): CSSProperties &
+ Record<`--${string}`, string> {
23
+ const style: ReturnType<typeof styleOptionsToCssProperties> = {};
24
25
if (direction === 'rtl') style['--animation-direction'] = 'reverse';
26
if (typeof duration === 'number')
0 commit comments