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) 419 B
import { BorderWidthValue } from '../types'; export type { BorderWidthValue } from '../types'; /** * Parse a CSS border-width shorthand property string * Supports 1-4 values: top [right [bottom [left]]] */ export declare function parse(value: string): BorderWidthValue | null; /** * Convert BorderWidthValue back to CSS string */ export declare function toCSSValue(parsed: BorderWidthValue | null): string | null;