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

Function SunLabel

packages/dev/s2-docs/pages/react-aria/home/ExampleApp.tsx:590–596  ·  view source on GitHub ↗
({sun}: {sun: string})

Source from the content-addressed store, hash-verified

588};
589
590function SunLabel({sun}: {sun: string}) {
591 return (
592 <Label color={sunColors[sun]} icon={sunIcons[sun]}>
593 {sun}
594 </Label>
595 );
596}
597
598function getSunlight(item: Plant) {
599 return (item.sunlight.find(s => s.startsWith('part')) || item.sunlight[0]).split('/')[0];

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected