Ver código
<co-radio label="Opción A" value="a" name="demo"></co-radio>
<co-radio label="Opción B" value="b" name="demo"></co-radio>
Props
| Prop | Atributo | Tipo | Default | Descripción |
|---|
checked | checked | boolean | false | Whether the radio is selected |
disabled | disabled | boolean | false | Disabled state |
label | label | string | undefined | — | Label text displayed beside the radio circle |
size | size | "large" | "small" | 'small' | Size: small=16px, large=24px |
value | value | string | '' | Value for radio group usage |
Eventos
| Evento | Detail | Bubbles | Cancelable | Descripción |
|---|
coChange | string | ✓ | ✓ | Fired when selected |
Slots
Este componente no expone slots.
CSS Parts
| Part | Descripción |
|---|
::part(circle) | |
::part(label) | |
CSS Custom Properties
Este componente no expone CSS custom properties.