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

Definition

The TypeScript definition as found in the origam source. Click the copy icon to copy the snippet.

typescript

Resolved value

Ecosystem

Used by

Composables and components that consume this constant.

Usage

Examples

Ready-to-paste code snippets using this constant.

Parsing a border shorthand value

typescript