UNPKG

@spark-web/box

Version:

--- title: Box storybookPath: page-layout-box--default isExperimentalPackage: false ---

8 lines (7 loc) 666 B
import type { ReactElement } from 'react'; import type { BoxStyleProps } from "./use-box-styles.js"; 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): import("react/jsx-runtime").JSX.Element | null; export declare const useBackgroundLightness: (backgroundOverride?: ReturnType<typeof useBackground>) => "light" | "dark";