Copy environment

Choice Group

Radio

<fieldset class="choice-group">
    <legend class="choice-group__label">Choice group label</legend>
    <div class="choice-group__inner">

        <div class="radio choice-group__item">
            <input type="radio" id="check1" name="check" value="" class="radio__input">
            <label for="check1" class="radio__label">
        <span class="radio__indicator"></span>
        <span class="radio__text">Esimene valik</span>
    </label>
        </div>

        <div class="radio choice-group__item">
            <input type="radio" id="check2" name="check" value="" class="radio__input">
            <label for="check2" class="radio__label">
        <span class="radio__indicator"></span>
        <span class="radio__text">Teine valik</span>
    </label>
        </div>

        <div class="radio choice-group__item">
            <input type="radio" id="check3" name="check" value="" class="radio__input">
            <label for="check3" class="radio__label">
        <span class="radio__indicator"></span>
        <span class="radio__text">Option 3</span>
    </label>
        </div>
    </div>
</fieldset>
{
  "language": "en-US",
  "data": {
    "label": "Choice group label",
    "type": "radio",
    "choices": [
      {
        "id": "check1",
        "label": "Esimene valik",
        "name": "check"
      },
      {
        "id": "check2",
        "label": "Teine valik",
        "name": "check"
      },
      {
        "id": "check3",
        "label": "Option 3",
        "name": "check"
      }
    ]
  }
}