UNPKG

@compositive/foundation

Version:

Compositive framework foundation package.

10 lines 685 B
import type { Style, StyleProperties, SxProp } from "@compositive/primitives"; import type { UnknownTheme } from "../theming"; import type { ThemedStyleProperties } from "./ThemedStyleProperties"; export declare const isConvertibleToStyle: <T extends UnknownTheme>(value: unknown) => value is ConvertibleToStyle<T>; export interface ConvertibleToStyle<T extends UnknownTheme> { toStaticStyle(theme: T): Style; } export declare type ThemedSxPropItem<T extends UnknownTheme> = ThemedStyleProperties<T> | ConvertibleToStyle<T> | Style | StyleProperties; export declare type ThemedSxProp<T extends UnknownTheme> = SxProp<ThemedSxPropItem<T>>; //# sourceMappingURL=ThemedSxProp.d.ts.map