All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.dist.providers.environment.use-environment-context.d.ts Maven / Gradle / Ivy

Go to download

A collection of unstyled, accessible UI components for React, utilizing state machines for seamless interaction.

The newest version!
import { Provider } from 'react';
export type RootNode = ShadowRoot | Document | Node;
export interface EnvironmentContext {
    /**
     * The root node of the application.
     * This is used to determine the window and document objects.
     */
    getRootNode(): RootNode;
    /**
     * The document context for the root node.
     */
    getDocument(): Document;
    /**
     * The window context for the root node.
     */
    getWindow(): Window & typeof globalThis;
}
export declare const EnvironmentContextProvider: Provider, useEnvironmentContext: () => EnvironmentContext;




© 2015 - 2025 Weber Informatics LLC | Privacy Policy