({children}: {children: ReactNode})
| 116 | |
| 117 | // Rendered inside <Text> to create skeleton line boxes via box-decoration-break. |
| 118 | export function SkeletonText({children}: {children: ReactNode}): ReactNode { |
| 119 | return ( |
| 120 | <span |
| 121 | // @ts-ignore - compatibility with React < 19 |
| 122 | inert={inertValue(true)} |
| 123 | ref={useLoadingAnimation(true)} |
| 124 | className={ |
| 125 | loadingStyle + |
| 126 | style({ |
| 127 | color: 'transparent', |
| 128 | boxDecorationBreak: 'clone', |
| 129 | borderRadius: 'sm' |
| 130 | }) |
| 131 | }> |
| 132 | {children} |
| 133 | </span> |
| 134 | ); |
| 135 | } |
| 136 | |
| 137 | // Clones the child element and displays it with skeleton styling. |
| 138 | export function SkeletonWrapper({children}: {children: SkeletonElement}): ReactNode { |
nothing calls this directly
no test coverage detected