UNPKG

@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) 579 B
import { type MarginValue } from './shared-margin'; export type MarginRightValue = MarginValue; /** * Parses a CSS margin-right property value * @param value - The CSS margin-right property string * @returns Parsed margin-right value or null if invalid */ export declare function parse(value: string): MarginRightValue | null; /** * Converts a parsed margin-right value back to CSS string * @param parsed - The parsed margin-right value * @returns CSS value string or null if invalid */ export declare function toCSSValue(parsed: MarginRightValue | null): string | null;