diff --git a/packages/core/src/skeleton/skeleton-root.tsx b/packages/core/src/skeleton/skeleton-root.tsx index 61bcf26d..bb7cc13b 100644 --- a/packages/core/src/skeleton/skeleton-root.tsx +++ b/packages/core/src/skeleton/skeleton-root.tsx @@ -46,8 +46,8 @@ export interface SkeletonRootCommonProps { export interface SkeletonRootRenderProps extends SkeletonRootCommonProps { role: "group"; - "data-animate": boolean; - "data-visible": boolean; + "data-animate": boolean | undefined; + "data-visible": boolean | undefined; } export type SkeletonRootProps< @@ -82,8 +82,8 @@ export function Skeleton( 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