isBemChildKey
Theme
stable
Returns true when a token path segment is a BEM child key — a single word containing only letters, with no hyphens or digits. Used by the token-name resolver to emit __child vs ---property separators.
API
Signature
Signature TypeScript complète, extraite du fichier util.
API
Paramètres
Paramètres d'entrée acceptés par cet util.
- keyrequisstring
- A single segment from a token path, e.g. "overlay", "background-color", "500". Only bare alpha words pass the guard.
API
Valeur de retour
La valeur retournée par cet util.
- true for strings that match /^[a-zA-Z]+$/ and contain no hyphen; false for any string with a hyphen, digit, or other character.
Usage
Exemples
Extraits de code prêts à coller.
Detect BEM child segments