BORDER_RADIUS_REGEX
const
Layout & Sizing
Regular expression used to detect a free-form CSS border-radius string passed via the rounded prop. Accepts 1–4 values with standard CSS length units or a unit-less 0. Non-matching values fall through to the named-variant or boolean branches of useRounded.
TypeScript
Définition
La définition TypeScript telle qu'elle apparaît dans le code source d'origam. Cliquez sur l'icône de copie pour copier l'extrait.
Valeur résolue
Écosystème
Utilisé par
Composables et composants qui consomment cette constante.
useRounded
Usage
Exemples
Extraits de code prêts à coller utilisant cette constante.
Testing if a value is a free-form radius