isCustomBorderRadius

Commons
stable

Returns true when a border-radius value is a custom CSS length (px, %, rem, em, vh, etc.) rather than a semantic Origam token name (sm, md, lg, …). Used by useRounded to decide whether to emit a utility class or an inline style.

API

Signature

Full TypeScript signature sourced from the util file.

typescript

API

Parameters

Input parameters accepted by this util.

value
required
string
The border-radius candidate string. Matched against CUSTOM_BORDER_RADIUS_REGEX after trimming.

API

Return value

The value returned by this util.

true for raw CSS lengths; false for token aliases that map to utility classes.

Usage

Examples

Ready-to-paste usage snippets.

Token alias vs raw length

typescript