vue3 input code example

Example 1: radio button vue

<input type="radio" id="one" value="One" v-model="picked">
<label for="one">One</label>
<br>
<input type="radio" id="two" value="Two" v-model="picked">
<label for="two">Two</label>
<br>
<span>Picked: {{ picked }}</span>

Example 2: vue v-model

<input v-model="message" placeholder="edit me">
<p>Message is: {{ message }}</p>

Example 3: input in vuejs

<select v-model="selected">
  <option disabled value="">Please select one</option>
  <option>A</option>
  <option>B</option>
  <option>C</option>
</select>
<span>Selected: {{ selected }}</span>

Tags:

Html Example