BORDER_REGEX

const
Layout & Sizing

Regular expression that parses a free-form border shorthand value into named capture groups: width, style, and color. Supports hex literals, CSS functions (rgb/hsl/rgba), CSS custom properties (var(--…)), and named keywords. The var() alternative is placed before the bare [A-Za-z]+ branch to avoid eating "var" as a keyword.

TypeScript

Définition

La définition TypeScript telle qu'elle apparaît dans le code source d'origam. Cliquez sur l'icône de copie pour copier l'extrait.

typescript

Valeur résolue

Écosystème

Utilisé par

Composables et composants qui consomment cette constante.

Usage

Exemples

Extraits de code prêts à coller utilisant cette constante.

Parsing a border shorthand value

typescript