Skip to main content

Radio Group

<sc-radio-group></sc-radio-group>

This component let users create radio group for holding multiple radio option.

Option 1Option 2Option 3

Component Codex

Properties

PropertyDescriptionTypeDefault
invalidThis will be true when the control is in an invalid state. Validity is determined by props such as `type`, `required`, `minlength`, `maxlength`, and `pattern` using the browser's constraint validation API.boolean
labelThe radio group label. Required for proper accessibility.string''
requiredIs one of these items required.boolean
valueThe selected value of the control.string''

Events

EventDescriptionType
scChangeCustomEvent<string>

Methods

reportValidity() => Promise<boolean>

Checks for validity and shows the browser's validation message if the control is invalid.

Shadow Parts

PartDescription
base
items
label