UNPKG

@carbon/ibm-products

Version:

Carbon for IBM Products

26 lines (25 loc) 771 B
/** * Copyright IBM Corp. 2025, 2025 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import { RefObject } from 'react'; /** * ------------- * Context setup * ------------- */ export type PageHeaderRefs = { contentRef?: RefObject<HTMLDivElement | null>; titleRef?: RefObject<HTMLHeadingElement | null>; }; type PageHeaderContextType = { refs?: PageHeaderRefs; setRefs: React.Dispatch<React.SetStateAction<PageHeaderRefs>>; fullyCollapsed?: boolean; titleClipped?: boolean; }; export declare const PageHeaderContext: import("react").Context<PageHeaderContextType | undefined>; export declare function usePageHeader(): PageHeaderContextType; export {};