# TallStackUI: Dropdown > TallStackUI is a TALL Stack (Tailwind CSS, Alpine.js, Laravel, Livewire) > component library providing 65+ Blade components for building modern web interfaces. A dropdown menu component that displays a floating panel of actions triggered by a text label, icon, or custom action slot. Supports configurable positioning via the Floating component and Alpine.js anchor. ## Basic Usage ```blade ``` ```blade ``` Using a custom action trigger: ```blade ``` With a header slot: ```blade
Signed in as user@example.com
``` ## Attributes | Attribute | Type | Default | Description | |-----------|--------------|--------------|-------------------------------------------------------------------------| | text | string\|null | null | Text label displayed as the dropdown trigger | | icon | string\|null | null | Icon name displayed as the dropdown trigger (used when text is not set) | | position | string\|null | 'bottom-end' | Floating panel position relative to the trigger | | static | bool\|null | false | When true, disables the click-outside auto-close animation | ## Slots | Slot | Description | |-----------|-----------------------------------------------------------------| | (default) | Dropdown menu items (typically `` components) | | header | Content rendered above the menu items | | action | Custom trigger element (replaces default text/icon trigger) | ## Validation Constraints - The `position` must be one of: auto, auto-start, auto-end, bottom, bottom-start, bottom-end, left, left-start, left-end, right, right-start, right-end, top, top-start, top-end. ## Soft Customization Soft customization allows you to override default Tailwind CSS classes used by this component at runtime, either through a service provider or scoped per-instance. ### Customization ```php TallStackUi::customize() ->dropdown() ->block('wrapper.first', 'your-tailwind-classes'); ``` ### Available Blocks | Block Name | Purpose | |------------------|---------------------------------------------------------| | wrapper.first | Outer flex container | | wrapper.second | Relative inline-block positioning container | | header.wrapper | Header content container with margin | | slot.wrapper | Menu items container with overflow and rounding | | floating.default | Floating panel base styles (background, border, shadow) | | floating.class | Floating panel width | | action.wrapper | Trigger button flex container | | action.text | Trigger text styles | | action.icon | Trigger icon and chevron styles |