@emanon/ema-radio
v0.3.3
Published
## Overall `<ema-radio>` is ema version of `<input type="radio">` component.
Readme
ema-radio
Overall
<ema-radio> is ema version of <input type="radio"> component.
Properties
| Property | Attribute | Type | Default |
|------------|------------|--------------------------------------|---------|
| disabled | disabled | boolean | false |
| options | options | { label: string, value: string }[] | [] |
| row | row | boolean | false |
| size | size | "large" \| "small" | "large" |
| value | value | string | "" |
Events
| Event | Type | Description |
|----------------|-----------------------------------|-------------------------------|
| value-change | CustomEvent<{ value: string; }> | Fires when value has changed. |
CSS Custom Properties
| Property | Default | Description |
|--------------------------------|-----------|----------------------------|
| --ema-c-radio-color-active | "#f94" | Radio color when active. |
| --ema-c-radio-color-inactive | "#d0d8df" | Radio color when inactive. |
