@spark-web/box
Version:
--- title: Box storybookPath: page-layout-box--default isExperimentalPackage: false ---
8 lines (7 loc) • 635 B
TypeScript
import type { ReactElement } from 'react';
import type { BoxStyleProps } from './use-box-styles';
export declare type BackgroundVariant = NonNullable<BoxStyleProps['background']> | 'UNKNOWN_DARK' | 'UNKNOWN_LIGHT';
export declare const InternalBackgroundProvider: import("react").Provider<BackgroundVariant>;
export declare const useBackground: () => BackgroundVariant;
export declare function renderBackgroundProvider(background: BackgroundVariant | undefined, element: ReactElement | null): JSX.Element | null;
export declare const useBackgroundLightness: (backgroundOverride?: ReturnType<typeof useBackground>) => "light" | "dark";