@gitlab/ui
Version:
GitLab UI Components
24 lines (20 loc) • 522 B
Markdown
`GlFormRadio` components can be used directly, or via a `GlFormRadioGroup`.
Below is an example which demonstrates the direct approach. For examples using
`GlFormRadioGroup`, see the documentation for that component.
```html
<script>
export default {
data() {
return {
selected: 'yes',
};
},
};
</script>
<template>
<div>
<gl-form-radio v-model="selected" value="yes">Yes</gl-form-radio>
<gl-form-radio v-model="selected" value="no">No</gl-form-radio>
</div>
</template>
```