MARGIN_REGEX
const
Layout & Sizing
Regular expression that validates a CSS shorthand margin/padding string (up to four space-separated values with valid units: px, pt, PC, in, cm, mm, em, rem, %, ex, ch, fr). Used by useMargin and usePadding to distinguish shorthand strings from single token values.
TypeScript
Definition
The TypeScript definition as found in the origam source. Click the copy icon to copy the snippet.
Resolved value
Ecosystem
Used by
Composables and components that consume this constant.
useMargin
usePadding
Usage
Examples
Ready-to-paste code snippets using this constant.
Validating a CSS shorthand margin string