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 content panel |
background | BackgroundColor | - | Content panel background (overrides default bg-base-100) |
rounded | RadiusValue | boolean | - | Content panel rounding (default rounded-box) |
width | SizeValue | - | Content panel width — Tailwind step ("52") or unitful value ("560px") |
padding | Spacing | - | Content panel padding (overrides default p-2) |
class | string | - | Additional CSS classes for the container (root) |
Slots
| Slot | Description |
|---|---|
trigger | The element that opens the dropdown (can be any component) |
default | Dropdown menu content (typically Menu.Item components) |