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
27 lines (26 loc) • 595 B
TypeScript
export type TipDataItem = {
idx: number;
nodeId: string;
title?: string;
text: string;
maxWidth?: number;
onClick?: {
nextButton?: () => Promise<void>;
prevButton?: () => Promise<void>;
closeButton?: () => Promise<void>;
};
};
export interface TipDataItemWithNode extends TipDataItem {
node: HTMLElement | null;
}
export type CustomColors = {
light: Partial<ColorTheme>;
dark: Partial<ColorTheme>;
};
type ColorTheme = {
bgPrimary: string;
textPrimary: string;
layoutPrimary: string;
primary: string;
};
export {};