UNPKG

@gravity-ui/uikit

Version:

Gravity UI base styling and components

20 lines (19 loc) 1.06 kB
import * as React from 'react'; import type { DisclosureProps } from "./Disclosure.js"; interface DisclosureProviderProps extends Required<Omit<DisclosureProps, 'className' | 'expanded' | 'qa'>> { expanded: DisclosureProps['expanded']; } export declare const DisclosureAttributesContext: React.Context<(Required<Omit<DisclosureProps, "onUpdate" | "className" | "children" | "qa" | "defaultExpanded">> & { expanded: boolean; ariaControls: string; ariaLabelledby: string; }) | undefined>; export declare const DisclosureToggleContext: React.Context<((e: React.SyntheticEvent) => void) | undefined>; export declare function DisclosureProvider(props: DisclosureProviderProps): import("react/jsx-runtime").JSX.Element; export declare function useDisclosureAttributes(): Required<Omit<DisclosureProps, "onUpdate" | "className" | "children" | "qa" | "defaultExpanded">> & { expanded: boolean; ariaControls: string; ariaLabelledby: string; }; export declare function useToggleDisclosure(): (e: React.SyntheticEvent) => void; export {};