UNPKG

@awsui/components-react

Version:

AWS UI is a collection of [React](https://reactjs.org/) components that help create intuitive, responsive, and accessible user experiences for web applications. It is developed by Amazon Web Services (AWS). This work is available under the terms of the [A

18 lines (17 loc) 870 B
import React from 'react'; import { HotspotProps } from '../hotspot'; import { AnnotationContextProps } from './interfaces'; export interface HotspotContext { getContentForId(id: string, direction: HotspotProps['direction']): JSX.Element | null; registerHotspot(id: string): void; unregisterHotspot(id: string): void; currentStepIndex: number; currentTutorial: AnnotationContextProps.Tutorial | null; onStartTutorial: AnnotationContextProps['onStartTutorial']; onExitTutorial: AnnotationContextProps['onExitTutorial']; announcementPopoverHeader: React.ReactNode | undefined; announcementPopoverBody: React.ReactNode | undefined; labelDismissAnnouncementPopover: string; onDismissAnnouncementPopover: AnnotationContextProps['onDismissAnnouncementPopover']; } export declare const hotspotContext: React.Context<HotspotContext>;