bracketSurfaceVars

Bracket
stable

Assemble the --origam-bracket-match---* CSS custom property map for a match surface from a prop bag. Used by OrigamBracket and OrigamBracketMatch to apply bg-color, rounded, elevation, border and borderColor.

API

Signature

Signature TypeScript complète, extraite du fichier util.

typescript

API

Paramètres

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

input
requis
IBracketSurfaceInput
Prop bag with optional bgColor, rounded, elevation, border, borderColor and borderStyle values that are each resolved to a CSS value.

API

Valeur de retour

La valeur retournée par cet util.

An object mapping --origam-bracket-match---* variable names to their resolved CSS values. Only variables with a non-empty resolved value are included.

Usage

Exemples

Extraits de code prêts à coller.

Build CSS variables for a bracket match surface

typescript