PADDING_REGEX

const
Layout & Sizing

RegExp that validates a CSS shorthand padding string (0 to 4 space-separated values each followed by a supported unit: px, pt, PC, in, cm, mm, em, rem, %, ex, ch, or fr). Returns null for invalid input.

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.

Validating a CSS padding shorthand value

typescript