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
8 lines (7 loc) • 562 B
TypeScript
import { CustomColors } from '../types';
/**
* Прокидывает пользовательские цвета темы в CSS-переменные --rct-* на элементе.
* Цвета и тему получает аргументами (без доступа к контексту), чтобы оставаться
* презентационным shared-хуком.
*/
export declare const usePropsColors: (element: React.MutableRefObject<HTMLElement | null>, customColors: CustomColors | undefined, theme: "dark" | "light" | undefined) => void;