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

Function Provider

packages/react-aria-components/src/utils.tsx:151–161  ·  view source on GitHub ↗
({
  values,
  children
}: ProviderProps<A, B, C, D, E, F, G, H, I, J, K, L, M>)

Source from the content-addressed store, hash-verified

149}
150
151export function Provider<A, B, C, D, E, F, G, H, I, J, K, L, M>({
152 values,
153 children
154}: ProviderProps<A, B, C, D, E, F, G, H, I, J, K, L, M>): JSX.Element {
155 for (let [Context, value] of values) {
156 // @ts-ignore
157 children = <Context.Provider value={value}>{children}</Context.Provider>;
158 }
159
160 return children as JSX.Element;
161}
162
163export interface StyleProps {
164 /**

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected