UNPKG

@awsui/components-react

Version:

AWS UI is a collection of [React](https://reactjs.org/) components that help create intuitive, responsive, and accessible user experiences for web applications. It is developed by Amazon Web Services (AWS). This work is available under the terms of the [A

14 lines (13 loc) 554 B
import React, { ProviderProps } from 'react'; export interface RootProviderProps<T> extends React.HTMLAttributes<HTMLDivElement>, ProviderProps<T> { } export interface IntermediateProviderProps { parentElement: HTMLElement; children?: React.ReactNode; } export interface DomContextDeclaration<T> { context: React.Context<T>; RootProvider: React.FC<RootProviderProps<T>>; IntermediateProvider: React.FC<IntermediateProviderProps>; } export declare function createDomContext<T>(name: string, defaultValue: T): DomContextDeclaration<T>;