UNPKG

@wix/css-property-parser

Version:

A comprehensive TypeScript library for parsing and serializing CSS property values with full MDN specification compliance

12 lines (11 loc) 532 B
import type { FlexDirectionValue } from '../types'; /** * Parses a CSS flex-direction property string into structured components * Follows MDN specification: https://developer.mozilla.org/en-US/docs/Web/CSS/flex-direction */ export declare function parse(value: string): FlexDirectionValue | null; /** * Converts a parsed flex-direction back to a CSS value string */ export declare function toCSSValue(parsed: FlexDirectionValue | null): string | null; export type { FlexDirectionValue, FlexDirectionKeyword } from '../types';