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

Function DefaultContent

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

Source from the content-addressed store, hash-verified

414});
415
416function DefaultContent() {
417 let {direction} = useLocale();
418 return (
419 <>
420 <div className={style({font: 'heading', marginBottom: 8})}>
421 {direction === 'rtl' ? 'مؤخرًا' : 'Recents'}
422 </div>
423 <div
424 className={style({
425 display: 'grid',
426 gridTemplateColumns: 'repeat(auto-fit, minmax(128px, 1fr))',
427 gridTemplateRows: 'min-content',
428 justifyContent: 'space-between',
429 gap: 16,
430 marginTop: 16
431 })}>
432 <SkeletonCard />
433 <SkeletonCard />
434 <SkeletonCard />
435 <SkeletonCard />
436 <SkeletonCard />
437 <SkeletonCard />
438 <SkeletonCard />
439 <SkeletonCard />
440 <SkeletonCard />
441 <SkeletonCard />
442 <SkeletonCard />
443 <SkeletonCard />
444 <SkeletonCard />
445 <SkeletonCard />
446 <SkeletonCard />
447 <SkeletonCard />
448 <SkeletonCard />
449 <SkeletonCard />
450 </div>
451 </>
452 );
453}
454
455export function SkeletonCard() {
456 return (

Callers

nothing calls this directly

Calls 1

useLocaleFunction · 0.90

Tested by

no test coverage detected