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

Function SkeletonCard

packages/dev/s2-docs/pages/s2/home/ExampleApp.tsx:455–482  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

453}
454
455export function SkeletonCard() {
456 return (
457 <Card size="S" styles={style({width: 'full'})}>
458 <CardPreview>
459 <div
460 className={style({
461 width: 'full',
462 aspectRatio: '2/1',
463 backgroundColor: 'gray-100'
464 })}
465 />
466 </CardPreview>
467 <Content>
468 <Text slot="title">
469 <span className={text} inert>
470 Placeholder title
471 </span>
472 </Text>
473 <Text slot="description" UNSAFE_style={{WebkitTextFillColor: 'transparent'}}>
474 <span className={text} inert>
475 This is placeholder content approximating the length of the real content to avoid layout
476 shifting when the real content appears.
477 </span>
478 </Text>
479 </Content>
480 </Card>
481 );
482}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected