Skip to content
This repository has been archived by the owner on Jan 6, 2025. It is now read-only.

Latest commit

 

History

History
45 lines (29 loc) · 1.35 KB

README.md

File metadata and controls

45 lines (29 loc) · 1.35 KB

Visual Studio Code Option

The vscode-option is a web component implementation of an option.

Option hero

Usage

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.

Implementation

Interactive component examples

Attributes

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.

Basic Option

<vscode-option>Option Label</vscode-option>

Disabled Attribute

<vscode-option disabled>Option Label</vscode-option>

Selected Attribute

<vscode-option selected>Option Label</vscode-option>

Value Attribute

<vscode-option value="example-option-value">Option Label</vscode-option>