Table of Contents

Class FiberElementProps

Namespace
Velvet
Assembly
Velvet.Docs.dll

Type-safe property bag for a VNode (text, tooltip, enabled/visible, field value, and element-specific settings), passed as the props: argument of the V.* factories.

public sealed class FiberElementProps
Inheritance
object
FiberElementProps

Fields

Empty

Shared read-only instance with no properties set; throws if mutated.

Properties

Aria

Carried aria-* attribute values (key → value), matched by the aria-[key=value]: / aria-[key]: variants. Stored in the reconciler's per-element side-table like Data (UI Toolkit has no HTML attributes). Null = none.

Choices

Choices for DropdownField / RadioButtonGroup.

Data

Carried data-* attribute values (key → value), the UI-Toolkit stand-in for HTML data attributes. UI Toolkit has no attributes, so these are stored in the reconciler's per-element side-table and matched by the data-[key=value]: / data-[key]: variants. Null = none.

Enabled

Maps to SetEnabled().

FieldValue

Generic binding for BaseField<T>.value.

Focusable

Whether the element is focusable.

Particles

Particles-specific settings (the effect the element simulates and draws).

SceneView

SceneView-specific settings (the camera whose output the element displays).

ScrollView

ScrollView-specific settings.

Slider

Slider-specific settings.

Text

Text for Label / Button.

TextField

TextField-specific settings.

Tooltip

Tooltip text.

Visible

When false, hides the element by toggling its "hidden" USS class.