UNPKG

@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) 718 B
import { BorderWidthPropertyValue } from './shared-border-width'; export type BorderRightWidthValue = BorderWidthPropertyValue; /** * Parse a CSS border-right-width property string * Accepts non-negative lengths and border width keywords (thin, medium, thick) * * @param value - The CSS border-right-width property value * @returns Parsed border right width value or null if invalid */ export declare function parse(value: string): BorderRightWidthValue; /** * Convert BorderRightWidthValue back to CSS string * * @param parsed - The parsed border right width value * @returns CSS string representation or null if invalid */ export declare function toCSSValue(parsed: BorderRightWidthValue): string | null;