Skip to content

FormRadio

Props

value
required
Radio value
type:[String, Object, Number]

Slots

default
Default label slot for radio

Events

update:modelValue
Updating model

Examples

Standard radio list

Zwracana wartość:

"yes"

html
<form-field name="islist" :model="islist" template="radio">
  <form-radio value="yes">
    <form-label text="Yes, that's good" />
  </form-radio>
  <form-radio value="no">
    <form-label text="No, it's bad" />
  </form-radio>
  <form-valid />
</form-field>
ts
const islist = useField('islist', toFieldValidator(zod.string()), { initialValue: 'yes' })

WARNING

The component for proper operation requires placing in the component FormField.