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

Signature TypeScript complète, extraite du fichier util.

typescript

API

Paramètres

Paramètres d'entrée acceptés par cet util.

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

API

Valeur de retour

La valeur retournée par cet util.

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

Usage

Exemples

Extraits de code prêts à coller.

Token alias vs raw length

typescript