Radio Input

Commonly used radio input component.

Examples

Radio Fields

Basic form controls

Installation

npx wdc add radio

Code

<wdc-radio-group [(ngModel)]="radioValue">
  <wdc-radio-item value="free">Free Plan</wdc-radio-item>
  <wdc-radio-item value="pro">Pro Plan - $10</wdc-radio-item>
  <wdc-radio-item value="enterprise">Enterprise</wdc-radio-item>
</wdc-radio-group>

API Reference

InputTypeDefaultDescription
options{ label: string; value: any }[]undefinedOptions for the radio input field.
ngModelanyundefinedValue of the radio input field.
disabledbooleanfalseWhether the radio input field is disabled.
namestringundefinedName of the radio input field.