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

Function getDefaultIllustration

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

Source from the content-addressed store, hash-verified

536});
537
538function getDefaultIllustration(href: string): [string, string] {
539 if (href.includes('/internationalized/')) {
540 return [DateRangePickerLight, DateRangePickerDark];
541 } else if (href.includes('/react-aria/')) {
542 return [AccessibilityLight, AccessibilityDark];
543 }
544 return [AdobeLight, AdobeDark];
545}
546
547const releaseText = style({
548 position: 'relative',

Callers 1

ComponentIllustrationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected