Dropdown
Dropdown component for creating action menus, context menus, and select-like interfaces.
Import
import { Dropdown } from '@sigx/daisyui';
Basic Dropdown
Loading preview...
Dropdown Positions
Loading preview...
Dropdown End Alignment
Loading preview...
Hover Dropdown
Loading preview...
User Menu Example
Loading preview...
Navbar Dropdown
Loading preview...
Context Menu Example
Loading preview...
Props
| Prop | Type | Default | Description |
|---|---|---|---|
position | 'end' | 'top' | 'bottom' | 'left' | 'right' | - | Dropdown position |
hover | boolean | false | Open on hover instead of click |
menuClass | string | - | Additional CSS classes for the dropdown menu |
class | string | - | Additional CSS classes for the container |
Slots
| Slot | Description |
|---|---|
trigger | The element that opens the dropdown (can be any component) |
default | Dropdown menu content (typically Menu.Item components) |