Radio
<gstock-radio>
|
GstockRadio
API
Properties
| Name | Description | Reflects | Type | Default |
|---|---|---|---|---|
checked
|
By default false |
|
boolean
|
false
|
label
|
By default “The radio’s label”. |
string
|
"The radio's label"
|
|
size
|
The radio’s size. By default, medium. |
|
'small' | 'medium' | 'large'
|
'medium'
|
name
|
Name groups the radios into a radio group. |
string
|
-
|
|
value
|
Value to be returned to the radio group when selected. |
string
|
-
|
|
disabled
|
Disable the radio. |
|
boolean
|
false
|
updateComplete
|
A read-only promise that resolves when the component has finished updating. |
Learn more about attributes and properties .
Events
| Name | React Event | Description | Event Detail |
|---|---|---|---|
gstock-blur-event
|
onGstockBlurEvent
|
Emitted when the radio loses focus. | - |
gstock-focus-event
|
onGstockFocusEvent
|
Emitted when the radio gains focus. | - |
Learn more about events .
CSS Parts
| Name | Description |
|---|---|
base
|
The component’s base wrapper. |
input
|
The radio type input. |
label
|
The radio label |
Learn more about CSS parts .