MCPcopy Index your code
hub / github.com/adobe/react-spectrum / getLibraryLabel

Function getLibraryLabel

packages/dev/s2-docs/src/library.tsx:21–28  ·  view source on GitHub ↗
(library: Library)

Source from the content-addressed store, hash-verified

19}
20
21export function getLibraryLabel(library: Library): string {
22 switch (library) {
23 case 'react-aria':
24 return 'React Aria';
25 default:
26 return 'React Spectrum';
27 }
28}
29
30export function getLibraryIcon(library: Library): React.ReactNode {
31 switch (library) {

Callers 7

PostListFunction · 0.90
getTitleFunction · 0.90
getDescriptionFunction · 0.90
LayoutFunction · 0.90
MarkdownMenuFunction · 0.90
getButtonTextFunction · 0.90
SearchMenuTriggerFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected