Skip to content

Latest commit

 

History

History
46 lines (30 loc) · 1.66 KB

README.md

File metadata and controls

46 lines (30 loc) · 1.66 KB

VSCode Radio

The vscode-radio is a web component implementation of a radio element.

Attributes

Attribute Type Description
checked boolean When true, the radio is toggled on.
disabled boolean Prevents the user from interacting with the radio––it cannot be pressed or focused.
readonly boolean Indicates whether the radio is checked or not.
value string The string to use as the value of the radio.

Usage

Basic Usage

Interactive Storybook Example

<vscode-radio>Radio Label</vscode-radio>

Checked Attribute

Interactive Storybook Example

<vscode-radio checked>Radio Label</vscode-radio>

Read Only Attribute

Interactive Storybook Example

<vscode-radio readonly>Radio Label</vscode-radio>

Disabled Attribute

Interactive Storybook Example

<vscode-radio disabled>Radio Label</vscode-radio>