@compiled/react
Version:
A familiar and performant compile time CSS-in-JS library for React.
11 lines (10 loc) • 474 B
TypeScript
/**
* Returns a CSS custom property value with an optional suffix & prefix.
* Prefix will only be added if there is a suffix.
* If the value is undefined a fallback value will be returned to prevent children inheriting parent values.
*
* @param value
* @param suffix
* @param prefix
*/
export default function cssCustomPropertyValue(value: string | number | null | undefined, suffix?: string | undefined | null, prefix?: string | undefined | null): string | number;