Radio
A set of checkable buttons—known as radio buttons—where no more than one of the buttons can be checked at a time.
Usage
API Reference
VoltRadioGroup — volt-radio-group
| Input | Type | Default |
|---|---|---|
| id | string | — |
| orientation | NgpOrientation | 'vertical' |
| value | string | null | null |
| disabled | boolean | false |
| compareWith | (a: string | null, b: string | null) => boolean | Object.is |
| Output | Type |
|---|---|
| valueChange | unknown |
VoltRadioItem — volt-radio-item
| Input | Type | Default |
|---|---|---|
| value * | string | — |
| disabled | boolean | false |
Component Source
Install via CLI:
npx @voltui/cli add radioTypeScript
Loading editor…
Copy this code to your project. The component uses ng-primitives/radio.