<template>
  <label :class="['radio', classSize, {'radio-disabled' : disabled}, {'radio-inline' : inline}]">
    <input
      type="radio"
      class="radio-entry"
      :disabled="disabled"
      v-bind="$attrs"
      ref="input"
      :value="value"
      :checked="isChecked"
      v-on="inputListeners"
    >

    <span class="radio-text">{{ label }}</span>
    <span v-if="description" class="radio-description">{{ description }}</span>
    <span v-if="error" class="field-error-message">{{ error }}</span>

  </label>
</template>

<style src="../../identity.css"></style>
<style scoped src="./styles.css" /></style>

<script src="./scripts.js"></script>