⚪
Vuetify-Form-Base
  • Introduction
  • News & Changes
  • Quickstart
    • Start with
    • Installation
    • Intro
    • Features
    • License
  • Form
    • Validation
  • Component
    • Async Loading
    • Attributes
    • From Schema to Component
    • Events
    • Grid
    • Slots
    • CSS
    • Custom Components
    • Tooltips
  • Schema
    • General
    • Autogeneration
    • Computed Schema
    • Display & Typography
    • Grouping Controls
    • Arrays
  • Input & Controls
    • Text-Field & Input
    • Checkbox, Switch & Sliders
    • Radio Buttons
    • Buttons
    • Select, Combo & Autocomplete
    • Lists & Treeviews
    • Date, Time & Color
    • Icons & Images
Powered by GitBook
On this page
  • Array of Strings
  • Array of Objects
  • Info to Vuetify Radio-Buttons
  • Radio API
  • Radio-Group API
  • Example Online

Was this helpful?

  1. Input & Controls

Radio Buttons

The radio component is part of radio-group component and can provide groupable functionality to allow users to select one from a set of options.

Array of Strings

Each Item in Options maps to <v-radio value="item" label="item" />

// Radio: 
schema: { 
    ctrl: { 
        type:'radio',
        options: ['A','B','C'] 
    }
}
<v-radio value="A" label="A" />
...

Array of Objects

// Radio Buttons 
schema: { 
    ctrl: { 
        type:'radio',
        options:[
          { value: 'B', color:'blue', label: 'Blue', offIcon:'add', onIcon:'check' }, 
          { value: 'R', color:'red', label:'Red' },
          { value: 'G', color:'green', label:'Green' },
        ]
    }
}
<v-radio 
    value="B" 
    color="blue" 
    label="Blue" 
    off-icon="add" 
    on-icon="check" 
/>
...
PreviousCheckbox, Switch & SlidersNextButtons

Last updated 4 years ago

Was this helpful?

Info to Vuetify Radio-Buttons
Radio API
Radio-Group API
Example Online