Skip to content
↑↓ to navigate↵ to openesc to close

Menu

Radio Group

Radio Group

RadioGroup.vue

With Description

RadioGroup.vue

API Reference

RadioGroup

v-model?
string
Default—
defaultValue?
string

Initial value when `v-model` is not used.

Default—
class?
string
Default—
orientation?
"vertical" | "horizontal"
Defaultvertical
aria-label?
string

Accessible name for the group when no visible label names it.

Default—
aria-labelledby?
string

Id of a visible element that names the group.

Default—
options?
readonly ChoiceOption[]

Shorthand for a list of options; use `RadioGroupItem` children for full control.

Default—
name?
string
Default—
label?
string

Accessible name for the group when no visible label names it. Same as `aria-label`.

Default—
labelledby?
string

Id of a visible element that names the group. Same as `aria-labelledby`.

Default—
disabled?
boolean
Default—
required?
boolean
Default—
#default?
slot

`RadioGroupItem` children.

Default—
#label?
slot

Label of an option in `options` mode.

Default—

RadioGroupItem

value
string
Default—
label?
string
Default—
description?
string

Supporting text under the label, announced as the description rather than the name.

Default—
disabled?
boolean
Default—
class?
string
Default—
id?
string

Id of the radio button.

Default—
#label?
slot

Rich label; takes over from the `label` prop.

Default—

Install

Add it with your package manager, or copy the source manually.

Run it in a project set up with shadcn-vue. The source is copied to components/beui and its dependencies are added to your package.json. Read the shadcn-vue guide

bunx --bun shadcn-vue@latest add @beui-vue/radio

Import the shared styles once in your application.

TSUsage
import RadioGroup from '@/components/beui/controls/RadioGroup.vue'
import '@/components/beui/styles.css'
Also on React Native. One dot glides to the option you pick.(opens in a new tab)

Updated