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