Dropdown Menu

Displays a dropdown list of options or actions to the user, activated through a button.

Usage

import { DropdDown } from "@lemonsqueezy/wedges";
<DropdownMenu>
	<DropdownMenu.Trigger asChild>
		<Button>Open Menu</Button>
	</DropdownMenu.Trigger>
	<DropdownMenu.Content>
		<DropdownMenu.Group>
			<DropdownMenu.Item>MenuItem</DropdownMenu.Item>
			<DropdownMenu.Item>MenuItem</DropdownMenu.Item>
		</DropdownMenu.Group>
		<DropdownMenu.Separator />
		<DropdownMenu.Group>
			<DropdownMenu.Item>MenuItem</DropdownMenu.Item>
			<DropdownMenu.Item>MenuItem</DropdownMenu.Item>
		</DropdownMenu.Group>
	</DropdownMenu.Content>
</DropdownMenu>

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.

Accessibility

The DropdownMenu component supports all accessibility features of the Radix Dropdown Menu primitive.

Examples

Edit this page