Skip to content

Latest commit

 

History

History
49 lines (31 loc) · 1.63 KB

README.md

File metadata and controls

49 lines (31 loc) · 1.63 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

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

Interactive Storybook Example

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

Disabled Attribute

Interactive Storybook Example

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

Selected Attribute

Interactive Storybook Example

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

Value Attribute

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