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
15 lines (14 loc) • 548 B
TypeScript
import { TipDataItem, TipDataItemWithNode, TipsConfig } from '../../shared/types';
import { Dispatch, ReactNode, SetStateAction } from 'react';
type TipsContextValue = TipsConfig & {
data: null | TipDataItemWithNode[];
isShow: boolean;
setIsShow: Dispatch<SetStateAction<boolean>>;
};
type Props = TipsConfig & {
children: ReactNode;
tips: TipDataItem[];
};
export declare const TipsContext: import('react').Context<TipsContextValue>;
export declare const TipsProvider: (props: Props) => import("react").JSX.Element;
export {};