MCPcopy Index your code
hub / github.com/adobe/react-spectrum / useIsSkeleton

Function useIsSkeleton

packages/@react-spectrum/s2/src/Skeleton.tsx:72–74  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

70
71export const SkeletonContext = createContext<boolean | null>(null);
72export function useIsSkeleton(): boolean {
73 return useContext(SkeletonContext) || false;
74}
75
76export interface SkeletonProps {
77 children: ReactNode;

Callers 6

HorizontalCard.tsxFile · 0.90
useFormPropsFunction · 0.90
Content.tsxFile · 0.90
StatusLight.tsxFile · 0.90
Card.tsxFile · 0.90
Image.tsxFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected