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

Full TypeScript signature sourced from the util file.

typescript

API

Parameters

Input parameters accepted by this util.

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

API

Return value

The value returned by this 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

Examples

Ready-to-paste usage snippets.

Build CSS variables for a bracket match surface

typescript