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) 571 B
import { GapValue } from '../types'; export type { GapValue, GapExpanded } from '../types'; /** * Parses a CSS gap property value into structured components * @param value - The CSS gap property string * @returns Parsed gap object with rowGap and columnGap or null if invalid */ export declare function parse(value: string): GapValue | null; /** * Converts a parsed gap back to a CSS value string * @param parsed - The parsed gap object * @returns CSS value string or null if invalid */ export declare function toCSSValue(parsed: GapValue | null): string | null;