Skip to content

DropdownItemRadio ​

A menu item that acts as a radio option inside a DropdownMenu. Use multiple items with the same groupValue binding so only one can be selected at a time.

Basic usage ​

Selected: list

Tailwind v4
vue
<script setup>
import { ref } from 'vue'
const view = ref('list')
</script>

<template>
  <DropdownMenu>
    <template #trigger>
      <Button variant="secondary">View: {{ view }}</Button>
    </template>
    <DropdownItemRadio value="list" :group-value="view" @select="view = $event">List</DropdownItemRadio>
    <DropdownItemRadio value="grid" :group-value="view" @select="view = $event">Grid</DropdownItemRadio>
    <DropdownItemRadio value="board" :group-value="view" @select="view = $event">Board</DropdownItemRadio>
  </DropdownMenu>
</template>

With descriptions ​

Tailwind v4
vue
<DropdownItemRadio value="newest" :group-value="sort" description="Most recent first" @select="sort = $event">
  Newest
</DropdownItemRadio>

With disabled option ​

Tailwind v4
vue
<DropdownItemRadio value="popular" :group-value="sort" disabled @select="sort = $event">
  Most popular (coming soon)
</DropdownItemRadio>

Props ​

PropTypeDefaultDescription
valuestring—The value this radio option represents
groupValuestring—The currently selected group value; when equal to value, the item appears selected
disabledbooleanfalsePrevents selection and dims the item
descriptionstring—Secondary text shown below the label

Emits ​

EventPayloadDescription
selectstringThe value of the item when selected

Slots ​

SlotDescription
defaultItem label text

Private — Jetpack Labs internal use only