@wix/css-property-parser
Version:
A comprehensive TypeScript library for parsing and serializing CSS property values with full MDN specification compliance
15 lines (14 loc) • 563 B
TypeScript
import { type MarginValue } from './shared-margin';
export type MarginTopValue = MarginValue;
/**
* Parses a CSS margin-top property value
* @param value - The CSS margin-top property string
* @returns Parsed margin-top value or null if invalid
*/
export declare function parse(value: string): MarginTopValue | null;
/**
* Converts a parsed margin-top value back to CSS string
* @param parsed - The parsed margin-top value
* @returns CSS value string or null if invalid
*/
export declare function toCSSValue(parsed: MarginTopValue | null): string | null;