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.

18 lines 781 B
import * as React from 'react'; import type { Orientation } from "../../utils/types.js"; import type { TextDirection } from "../../direction-provider/index.js"; import type { AccordionRoot, AccordionValue } from "./AccordionRoot.js"; export interface AccordionRootContext { accordionItemRefs: React.RefObject<(HTMLElement | null)[]>; direction: TextDirection; disabled: boolean; handleValueChange: (newValue: number | string, nextOpen: boolean) => void; hiddenUntilFound: boolean; keepMounted: boolean; loop: boolean; orientation: Orientation; state: AccordionRoot.State; value: AccordionValue; } export declare const AccordionRootContext: React.Context<AccordionRootContext | undefined>; export declare function useAccordionRootContext(): AccordionRootContext;