MCPcopy Create free account
hub / github.com/adobe/react-spectrum / Skeleton

Function Skeleton

packages/@react-spectrum/s2/src/Skeleton.tsx:84–87  ·  view source on GitHub ↗
({children, isLoading}: SkeletonProps)

Source from the content-addressed store, hash-verified

82 * A Skeleton wraps around content to render it as a placeholder.
83 */
84export function Skeleton({children, isLoading}: SkeletonProps): ReactNode {
85 // Disable all form components inside a skeleton.
86 return <SkeletonContext.Provider value={isLoading}>{children}</SkeletonContext.Provider>;
87}
88
89export const loadingStyle = css(
90 `

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected