WarUI documentation

Form-associated fixture

experimental

Change the input label, active state, and value on a WarUI custom element.

Live example

Example controls

Expected behavior

The input reflects the controls. Reset restores the original label, value, and active state.

Source

<war-fixture label="Fixture value" value="WarUI"></war-fixture>

API reference

war-fixture manifest
KindNameTypeDescription
Propertylabelstring—
Propertyactiveboolean—
PropertysettingsRecord<string, unknown>—
AttributelabelstringAccessible input label.
AttributeactivebooleanWhether the fixture is active.
Eventwar-changeCustomEvent<{value:string}>A user changed the value.
Slot(default)—Default content.
Slotextra—Additional content.