Suppers Software Logo
HomeUI Components
ButtonDropdownLoginButtonModalSearchButtonSearchModalSwapThemeController
AccordionAvatarBadgeCardCarouselChat BubbleCollapseCountdownDiffKbdLogoStatTableTimelineUserInfo
BreadcrumbsDockLinkMenuNavbarPaginationSidebarStepsTabsUserProfileDropdown
CheckboxColorInputDateInputDatetimeInputEmailInputFile InputInputNumberInputPasswordInputRadioRangeRatingSelectTextareaTimeInputToggle
ArtboardDividerDrawerFooterHeroIndicatorJoinMaskStack
AlertLoadingProgressRadial ProgressSkeletonToastTooltip
BrowserCodePhoneWindow

Dropdown

Dropdown menus for navigation and actions with customizable trigger and content

  • Home
  • Components

Basic Dropdown

Simple dropdown menu with button trigger

  • Item 1
  • Item 2
  • Item 3
Show Code

Dropdown Positions

Different dropdown positions

  • Item 1
  • Item 2
  • Item 1
  • Item 2
Show Code

Hover Dropdown

Dropdown that opens on hover

  • Quick Action 1
  • Quick Action 2
  • Quick Action 3
Show Code

User Profile Dropdown

Real-world example with avatar and actions

User
  • John Doe
  • Profile
  • Settings

  • Sign out
Show Code

Usage Notes

  • Use trigger prop for the clickable element that opens the dropdown
  • Use content prop for the dropdown menu items
  • Position prop controls where the dropdown appears relative to trigger
  • Hover prop enables hover-to-open behavior
  • Great for navigation menus, context menus, and action lists

API Props

PropTypeRequiredDefaultDescription
content*anyYes-Content to display in the dropdown
trigger*anyYes-Component that triggers the dropdown
childrenanyNo-Component content
classstringNo-Additional CSS classes
forceOpenbooleanNofalseForce dropdown to stay open
hoverbooleanNofalseWhether dropdown opens on hover
idstringNo-HTML id attribute
onCloseFunctionNo-Callback when dropdown closes
onOpenFunctionNo-Callback when dropdown opens
onToggle(arg0: boolean) => voidNo-Callback when dropdown toggle state changes
openbooleanNofalseWhether dropdown is open
position'top' | 'bottom' | 'left' | 'right' | 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end'No"bottom"Dropdown position relative to trigger
Examples: bottom, top, bottom-end, top-start
Since: 1.0.0
Components
UI LibraryBrowse AllGetting Started
Builder
Generate AppTemplatesAPI Reference
Resources
DocumentationDenodaisyUI

© 2025 Suppers Software Limited. Built with Deno, Fresh, Preact & DaisyUI.