UNPKG

@base-ui-components/react

Version:

Base UI is a library of headless ('unstyled') React components and low-level hooks. You gain complete control over your app's CSS and accessibility features.

8 lines 398 B
/** * If the provided style is an object, it will be returned as is. * Otherwise, the function will call the style function with the state as the first argument. * * @param style * @param state */ export declare function resolveStyle<State>(style: React.CSSProperties | ((state: State) => React.CSSProperties | undefined) | undefined, state: State): import("react").CSSProperties | undefined;