Web Components
Complete attribute reference for all Vibe Flags custom elements.
<vibe-flags-boolean>
Declares a boolean flag and conditionally renders its children.
Attributes
| Attribute | Type | Default | Description |
|---|---|---|---|
name | string | '' | Unique flag identifier |
description | string | '' | Label shown in the toolbar (falls back to name) |
value | string | '' | Expected value to show children. If omitted, children are always shown. |
default | boolean | false | Initial value when no stored value exists. Also used by "Reset all to defaults". |
Examples
<vibe-flags-select>
Declares a select flag. Options are defined as <vibe-flags-option> children.
Attributes
| Attribute | Type | Default | Description |
|---|---|---|---|
name | string | '' | Unique flag identifier |
description | string | '' | Label shown in the toolbar (falls back to name) |
default | string | first option | Initial option value. Must match a child option's value. |
custom | boolean | false | Adds a "Custom..." option with free-text input in the toolbar. |
Examples
<vibe-flags-option>
A single option inside <vibe-flags-select>. Children are shown only when this option is active.
Attributes
| Attribute | Type | Default | Description |
|---|---|---|---|
value | string | '' | The option value |
<vibe-flags-toolbar>
Floating toggle button and slide-out sidebar. Discovers all registered flags and renders controls.
Attributes
| Attribute | Type | Default | Description |
|---|---|---|---|
position | string | 'bottom-right' | Initial corner. One of: bottom-right, bottom-left, top-right, top-left. Overridden by saved user preference. |