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 dropdown menu
classstring-Additional CSS classes for the container

Slots#

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