resolveBracketSurface

Bracket
stable

Resolve a bracket bgColor value (intent token, "transparent", or raw CSS colour) to a background-color CSS expression. Returns null for falsy inputs.

API

Signature

Signature TypeScript complète, extraite du fichier util.

typescript

API

Paramètres

Paramètres d'entrée acceptés par cet util.

value
requis
TBracketColor
A TBracketColor value: a TIntent string (maps to its background token), "transparent", a raw CSS colour string, or a falsy value (returns null).

API

Valeur de retour

La valeur retournée par cet util.

The resolved background-color CSS value, or null when the input is falsy or unresolvable.

Usage

Exemples

Extraits de code prêts à coller.

Resolve intent, transparent, and raw colour

typescript