@wordpress/components
Version:
UI components for WordPress.
18 lines • 487 B
TypeScript
/**
* Parses a number and unit from a value.
*
* @param toParse Value to parse
*
* @return The extracted number and unit.
*/
export declare function parseCSSUnitValue(toParse: string): [number | undefined, string | undefined];
/**
* Combines a value and a unit into a unit value.
*
* @param value
* @param unit
*
* @return The unit value.
*/
export declare function createCSSUnitValue(value: string | number, unit: string): string;
//# sourceMappingURL=unit-values.d.ts.map