UNPKG

@atlaskit/side-navigation

Version:

A highly composable side navigation component that supports nested views.

17 lines (16 loc) • 615 B
import { type MutableRefObject } from 'react'; export interface NestedContextValue { currentStackId: string; onNest: (id: string) => void; onUnNest: () => void; stack: string[]; parentId: string; backButton?: React.ReactNode; childIds: MutableRefObject<Set<string>>; forceShowTopScrollIndicator: boolean | undefined; activeParentId?: string; goBackButtonRef?: React.MutableRefObject<HTMLButtonElement | null>; isDefaultFocusControl?: boolean; focusGoBackButton?: boolean; } export declare const NestedContext: import('react').Context<NestedContextValue | undefined>;