The vscode-option
is a web component implementation of an option.
The vscode-option
component will only provide internals related to form association when used within a form-associated component. See the vscode-dropdown component for more details.
Interactive component examples
Attribute | Type | Description |
---|---|---|
disabled |
boolean | The disabled state of the option. |
selected |
boolean | The selected attribute value. This sets the initial selected value. |
value |
string | The initial value of the option. |
<vscode-option>Option Label</vscode-option>
<vscode-option disabled>Option Label</vscode-option>
<vscode-option selected>Option Label</vscode-option>
<vscode-option value="example-option-value">Option Label</vscode-option>