UNPKG

@launchmenu/core

Version:

An environment for visual keyboard controlled applets

18 lines 739 B
import React, { FC } from "react"; import { IBackgroundColorData } from "./_types/IBackgroundColorData"; /** * A context to pass background color info down the tree, used by menu items, since their bg changes based on selection */ export declare const BackgroundColorContext: React.Context<IBackgroundColorData>; /** * A provider for the background color, isDark will automatically be computed if a color is provided */ export declare const BackgroundColorProvider: FC<{ isDark?: boolean; color?: string | number; }>; /** * Retrieve color background color data in the current context */ export declare const useBackgroundColor: () => IBackgroundColorData; //# sourceMappingURL=backgroundColorContext.d.ts.map