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

Function CodePlatterProvider

packages/dev/s2-docs/src/CodePlatter.tsx:75–77  ·  view source on GitHub ↗
(props: CodePlatterContextValue & {children: any})

Source from the content-addressed store, hash-verified

73
74const CodePlatterContext = createContext<CodePlatterContextValue>({library: 'react-spectrum'});
75export function CodePlatterProvider(props: CodePlatterContextValue & {children: any}) {
76 return <CodePlatterContext.Provider value={props}>{props.children}</CodePlatterContext.Provider>;
77}
78
79interface FileProviderContextValue extends DownloadFiles {
80 entry?: string;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected