Components/Dropdown

Dropdown

navigation

Radix-powered dropdown menu with animated open/close, keyboard navigation, and sub-menu support.

import { Dropdown, DropdownItem, DropdownLabel, DropdownSeparator } from '@/components/forge'

Preview

Dropdown

Code Example

Props

PropTypeDefaultRequiredDescription
triggerReact.ReactNode-YesElement that opens the dropdown
childrenReact.ReactNode-YesDropdown menu content such as items, labels, and separators
align'start' | 'center' | 'end''start'NoHorizontal alignment of the menu
contentClassNamestring-NoAdditional classes for the dropdown content surface

Variants

itemlabelseparatorcheckbox

Accessibility

  • Uses Radix DropdownMenu for full keyboard navigation
  • Trigger has aria-haspopup and aria-expanded
  • Menu items have role="menuitem"

Related Components