@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) • 798 B
TypeScript
import { BorderStyleKeywordValue, CSSVariableValue } from '../types';
export type BorderStylePropertyValue = BorderStyleKeywordValue | CSSVariableValue | null;
/**
* Parse a border style property value (keyword only)
* Accepts border style keywords: none, hidden, dotted, dashed, solid, double, groove, ridge, inset, outset
*
* @param value - CSS border style value string
* @returns Parsed border style value or null if invalid
*/
export declare function parseBorderStyleProperty(value: string): BorderStylePropertyValue;
/**
* Convert a border style property value back to CSS string
*
* @param parsed - Parsed border style value
* @returns CSS string representation or null if invalid
*/
export declare function borderStyleToCSSValue(parsed: BorderStylePropertyValue): string | null;