@base-ui/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.
12 lines • 625 B
TypeScript
import * as React from 'react';
import type { AccordionRoot } from "./AccordionRoot.js";
export interface AccordionRootContext<Value = any> {
disabled: boolean;
handleValueChange: (newValue: AccordionRoot.Value<Value>[number], nextOpen: boolean, eventDetails: AccordionRoot.ChangeEventDetails) => void;
hiddenUntilFound: boolean;
keepMounted: boolean;
state: AccordionRoot.State<Value>;
value: AccordionRoot.Value<Value>;
}
export declare const AccordionRootContext: React.Context<AccordionRootContext<any> | undefined>;
export declare function useAccordionRootContext<Value = any>(): AccordionRootContext<Value>;