Radio

<vscode-radio>

When participating in a form, it supports the :invalid pseudo class. Otherwise the error styles can be applied through the invalid property.

Properties

autofocus reflected
Attributeautofocus
Typeboolean
Defaultfalse
checked reflected
Attributechecked
Typeboolean
Defaultfalse
defaultChecked reflected
Attributedefault-checked
Typeboolean
Defaultfalse
disabled reflected
Attributedisabled
Typeboolean
Defaultfalse
focused reflected
Attributefocused
Typeboolean
Defaultfalse
form readonly
TypeHTMLFormElement | null
invalid reflected
Attributeinvalid
Typeboolean
Defaultfalse
label

Label text. It is only applied if component's innerHTML doesn't contain any text.

Attributelabel
Typestring
name reflected

Name which is used as a variable name in the data of the form-container.

Attributename
Typestring
Default''
required reflected
Attributerequired
Typeboolean
Defaultfalse
validationMessage readonly
Typestring
validity readonly
TypeValidityState
value
Attributevalue
Typestring
Default''
version readonly

VSC Element version

willValidate readonly
Typeboolean

Methods

checkValidity
Returnboolean
reportValidity
Returnboolean

Events

change

Dispatched when checked state is changed.

TypeEvent
invalid

Dispatched when the element is invalid and checkValidity() has been called or the form containing this element is submitted. MDN Reference

TypeEvent
vsc-change deprecated
  • Use the native change event instead.
TypeCustomEvent

Custom CSS Properties

--vsc-foreground-translucent

Label font color. 90% transparency version of --vscode-foreground by default.

--vscode-focusBorder

--vscode-font-family

--vscode-font-size

--vscode-font-weight

--vscode-settings-checkboxBackground

--vscode-settings-checkboxBorder

--vscode-settings-checkboxForeground