Skip to content

Commit

Permalink
fix(skeleton): correct data-animate & data-visible attribute value
Browse files Browse the repository at this point in the history
  • Loading branch information
jer3m01 committed Jul 31, 2024
1 parent dbf6382 commit 3f0e195
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/core/src/skeleton/skeleton-root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ export interface SkeletonRootCommonProps<T extends HTMLElement = HTMLElement> {

export interface SkeletonRootRenderProps extends SkeletonRootCommonProps {
role: "group";
"data-animate": boolean;
"data-visible": boolean;
"data-animate": boolean | undefined;
"data-visible": boolean | undefined;
}

export type SkeletonRootProps<
Expand Down Expand Up @@ -82,8 +82,8 @@ export function Skeleton<T extends ValidComponent = "div">(
<Polymorphic<SkeletonRootRenderProps>
as="div"
role="group"
data-animate={local.animate}
data-visible={local.visible}
data-animate={local.animate || undefined}
data-visible={local.visible || undefined}
style={combineStyle(
{
"border-radius": local.circle
Expand Down

0 comments on commit 3f0e195

Please sign in to comment.