resolveBracketRadius
Bracket
stable
Resolve a bracket rounded value (named variant, rung keyword, boolean, number, or raw CSS string) to a border-radius CSS expression. Returns null for falsy inputs.
API
Signature
Full TypeScript signature sourced from the util file.
API
Parameters
Input parameters accepted by this util.
- valuerequiredTBracketRounded
- A TBracketRounded value: a named rung string (e.g. "md", "lg"), true (medium radius default), a number (converted to px), a raw CSS string, false/null (returns null).
API
Return value
The value returned by this util.
- A CSS border-radius value (token var, px string, or raw CSS) or null when the input is falsy.
Usage
Examples
Ready-to-paste usage snippets.
Resolve various rounded values