Dropdown#

Dropdown component for creating action menus, context menus, and select-like interfaces.

Import#

TSX
import { Dropdown } from '@sigx/daisyui';

Basic Dropdown#

TSX
Loading preview...
TSX
Loading preview...
TSX
Loading preview...

Hover Dropdown#

TSX
Loading preview...

User Menu Example#

TSX
Loading preview...
TSX
Loading preview...

Context Menu Example#

TSX
Loading preview...

Props#

PropTypeDefaultDescription
position'end' | 'top' | 'bottom' | 'left' | 'right'-Dropdown position
hoverbooleanfalseOpen on hover instead of click
menuClassstring-Additional CSS classes for the content panel
backgroundBackgroundColor-Content panel background (overrides default bg-base-100)
roundedRadiusValue | boolean-Content panel rounding (default rounded-box)
widthSizeValue-Content panel width — Tailwind step ("52") or unitful value ("560px")
paddingSpacing-Content panel padding (overrides default p-2)
classstring-Additional CSS classes for the container (root)

Slots#

SlotDescription
triggerThe element that opens the dropdown (can be any component)
defaultDropdown menu content (typically Menu.Item components)