resolveBracketShadow
Bracket
stable
Resolve a bracket elevation value (number, named rung, boolean, or raw string) to a box-shadow CSS expression using the design token shadow ladder. Returns null for falsy inputs.
API
Signature
Full TypeScript signature sourced from the util file.
API
Parameters
Input parameters accepted by this util.
- valuerequiredTBracketElevation
- A TBracketElevation value: a number (bucketed to xs/sm/md/lg/xl shadow rung), a named rung string, true (medium shadow default), a raw CSS string, or false/null (returns null).
API
Return value
The value returned by this util.
- A CSS box-shadow value (token var or raw string) or null for falsy inputs.
Usage
Examples
Ready-to-paste usage snippets.
Resolve numeric and named elevation