UNPKG

@base-ui-components/react

Version:

Base UI is a library of headless ('unstyled') React components and low-level hooks. You gain complete control over your app's CSS and accessibility features.

5 lines 333 B
import * as React from 'react'; import type { SwitchRoot } from "./SwitchRoot.js"; export type SwitchRootContext = SwitchRoot.State; export declare const SwitchRootContext: React.Context<import("./SwitchRoot.js").SwitchRootState | undefined>; export declare function useSwitchRootContext(): import("./SwitchRoot.js").SwitchRootState;