@wix/css-property-parser
Version:
A comprehensive TypeScript library for parsing and serializing CSS property values with full MDN specification compliance
18 lines (17 loc) • 702 B
TypeScript
import { BorderWidthPropertyValue } from './shared-border-width';
export type BorderTopWidthValue = BorderWidthPropertyValue;
/**
* Parse a CSS border-top-width property string
* Accepts non-negative lengths and border width keywords (thin, medium, thick)
*
* @param value - The CSS border-top-width property value
* @returns Parsed border top width value or null if invalid
*/
export declare function parse(value: string): BorderTopWidthValue;
/**
* Convert BorderTopWidthValue back to CSS string
*
* @param parsed - The parsed border top width value
* @returns CSS string representation or null if invalid
*/
export declare function toCSSValue(parsed: BorderTopWidthValue): string | null;