Docs
Dropdown Menu

Dropdown Menu

Displays a menu to the user — such as a set of actions or functions — triggered by a button.

Usage

vue
<script setup lang="ts">
import {
  DropdownMenu,
  DropdownMenuContent,
  DropdownMenuItem,
  DropdownMenuLabel,
  DropdownMenuSeparator,
  DropdownMenuTrigger,
} from "wedges-vue";
</script>

<template>
  <DropdownMenu>
    <DropdownMenuTrigger>Open</DropdownMenuTrigger>
    <DropdownMenuContent>
      <DropdownMenuLabel>My Account</DropdownMenuLabel>
      <DropdownMenuSeparator />
      <DropdownMenuItem>Profile</DropdownMenuItem>
      <DropdownMenuItem>Billing</DropdownMenuItem>
      <DropdownMenuItem>Team</DropdownMenuItem>
      <DropdownMenuItem>Subscription</DropdownMenuItem>
    </DropdownMenuContent>
  </DropdownMenu>
</template>

API Reference


Extends the Radix Dropdown Menu Root primitive.

Extends the Radix Dropdown Menu Trigger primitive.

Extends the Radix Dropdown Menu Portal primitive.

Extends the Radix Dropdown Menu Content primitive with custom configuration.

Extends the Radix Dropdown Menu Item primitive with custom configuration.

Extends the Radix Dropdown Menu Group primitive.

Extends the Radix Dropdown Menu Label primitive with custom styling.

Extends the Radix Dropdown Menu Checkbox Item primitive with custom configuration.

Extends the Radix Dropdown Menu Radio Group primitive.

Extends the Radix Dropdown Menu Radio Item primitive with custom configuration.

Extends the Radix Dropdown Menu Radio Separator primitive with custom styling.

Extends the Radix Dropdown Menu Sub primitive with custom configuration.

Extends the Radix Dropdown Menu SubTrigger primitive with custom configuration.

Extends the Radix Dropdown Menu SubContent primitive with custom configuration.

Examples

Edit this page on GitHub