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
Full TypeScript signature sourced from the util file.
API
Parameters
Input parameters accepted by this util.
- valuerequiredTBracketBorder
- 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
Return value
The value returned by this util.
- A CSS border-width value (token var or pixel string) or null for falsy/unresolvable inputs.
Usage
Examples
Ready-to-paste usage snippets.
Resolve border keyword and boolean