resolveBracketBorderWidth
Bracket
stable
Resolve a bracket border value (keyword, boolean, or number) into a CSS border-width string. Returns null for falsy inputs.
API
Signature
Signature TypeScript complète, extraite du fichier util.
API
Paramètres
Paramètres d'entrée acceptés par cet util.
- valuerequisTBracketBorder
- A TBracketBorder value: "none" / "thin" / "thick" keyword (maps to a token var), true / empty string (thin), a numeric pixel value, or a falsy value (returns null).
API
Valeur de retour
La valeur retournée par cet util.
- A CSS border-width value (token var or pixel string) or null for falsy/unresolvable inputs.
Usage
Exemples
Extraits de code prêts à coller.
Resolve border keyword and boolean