UNPKG

react-custom-tours

Version:

A library with tips that you can attach to blocks on your sites so that users can more easily understand how to use your site

25 lines (24 loc) 830 B
import { CustomColors, TipDataItem, TipDataItemWithNode } from '../../shared/types'; import { Dispatch, ReactNode, SetStateAction } from 'react'; type AuthContext = { data: null | TipDataItemWithNode[]; isShow: boolean; setIsShow: Dispatch<SetStateAction<boolean>>; theme?: 'dark' | 'light'; escapeToClose?: boolean; customColors?: CustomColors; isHiddenClose?: boolean; highlightPadding?: number; }; type Props = { children: ReactNode; tips: TipDataItem[]; theme?: 'dark' | 'light'; customColors?: CustomColors; escapeToClose?: boolean; isHiddenClose?: boolean; highlightPadding?: number; }; export declare const TipsContext: import('react').Context<AuthContext>; export declare const TipsProvider: (props: Props) => import("react/jsx-runtime").JSX.Element; export {};