You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The vscode-radio-group is a web component implementation of a radio group.
Usage
❌ Don't
✅ Do
Don't use radio buttons when more than one selection is possible. Try using checkboxes instead.
Use radio groups for options that feature a single selection at a time.
❌ Don't
✅ Do
Avoid using horizontal radio group layouts.
Arrange radio groups vertically to make it easy to scan and compare options.
❌ Don't
✅ Do
Don't use long blocks of text.
Use concise language to describe each option.
Implementation
While any DOM content is permissible as a child of the vscode-radio-group, only vscode-radio components and slotted content with a role of radio will receive keyboard support.
Attributes
Attribute
Type
Description
disabled
boolean
Disables the radio group and child radios.
name
string
The name of the radio group. This will also set the name value for all child radio elements.
orientation
string
The orientation of the group. Options: horiztonal, vertical.
readonly
boolean
When true, the child radios will be immutable by user interaction.