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

Function getDefaultIllustration

packages/dev/s2-docs/src/ComponentCard.tsx:489–496  ·  view source on GitHub ↗
(href: string)

Source from the content-addressed store, hash-verified

487});
488
489function getDefaultIllustration(href: string): [string, string] {
490 if (href.includes('/internationalized/')) {
491 return [DateRangePickerLight, DateRangePickerDark];
492 } else if (href.includes('/react-aria/')) {
493 return [AccessibilityLight, AccessibilityDark];
494 }
495 return [AdobeLight, AdobeDark];
496}
497
498const releaseText = style({
499 position: 'relative',

Callers 1

ComponentIllustrationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected