Table of Contents

Class BOBStylingKeys

Namespace
BlazOrbit.Components
Assembly
BlazOrbit.Core.dll

Public, stable subset of the BlazOrbit CSS/DOM contract that consumers can reference when writing custom CSS or tests against BOB components.

public static class BOBStylingKeys
Inheritance
object
BOBStylingKeys

Remarks

The internal contract lives in BlazOrbit.Components.FeatureDefinitions and may change between minor versions; the keys exposed here are the subset that the library commits to keep stable across 1.x.

Fields

Component

data-bob-component — identifies the component type on the root <bob-component> element (e.g. button, input-text).

public const string Component = "data-bob-component"

Field Value

string

Density

data-bob-density — compact | standard | comfortable. Drives InlineDensityMultiplier.

public const string Density = "data-bob-density"

Field Value

string

InlineBackground

--bob-inline-background — inline background-color override emitted from IHasBackgroundColor.

public const string InlineBackground = "--bob-inline-background"

Field Value

string

InlineColor

--bob-inline-color — inline foreground-color override emitted from IHasColor.

public const string InlineColor = "--bob-inline-color"

Field Value

string

InlineDensityMultiplier

--bob-density-multiplier — scalar multiplier applied to inter-element spacing based on Density.

public const string InlineDensityMultiplier = "--bob-density-multiplier"

Field Value

string

InlineSizeMultiplier

--bob-size-multiplier — scalar multiplier applied to component dimensions based on Size.

public const string InlineSizeMultiplier = "--bob-size-multiplier"

Field Value

string

Size

data-bob-size — small | medium | large. Drives InlineSizeMultiplier.

public const string Size = "data-bob-size"

Field Value

string

Variant

data-bob-variant — current variant name (e.g. outlined, filled, a custom variant registered via AddBlazOrbitVariants).

public const string Variant = "data-bob-variant"

Field Value

string