# Dropdown

<figure><img src="/files/j19BGkMhqpPKHMID719X" alt=""><figcaption></figcaption></figure>

## Overview

A customizable dropdown overlay component that creates an accessible, animated dropdown menu triggered by a button. Provides flexible positioning, styling, and responsive behavior options.

## Common use cases

* Create navigation menus with dropdown submenus
* Build interactive forms with dropdown options
* Display additional content on hover or click
* Organize related content in collapsible dropdowns
* Create mobile-friendly navigation patterns

## Compatible blocks

The following blocks can be nested within this block:

* [Container](/slab/content/blocks/layout/container.md)

## Block settings

### General

| Setting                | Description                                                           | Options                   |
| ---------------------- | --------------------------------------------------------------------- | ------------------------- |
| Show advanced settings | Reveals direction, horizontal position, show on hover, and visibility | Checkbox (default: false) |

### Spacing

| Setting                   | Description                                   | Options                   |
| ------------------------- | --------------------------------------------- | ------------------------- |
| Enable horizontal padding | Adds horizontal padding inside the container  | Checkbox (default: false) |
| Enable top padding        | Adds top padding                              | Checkbox (default: false) |
| Enable bottom padding     | Adds bottom padding                           | Checkbox (default: false) |
| Enable internal padding   | Adds padding inside the dropdown content area | Checkbox (default: true)  |

### Layout

| Setting              | Description                                                             | Options                                                                                                                 |
| -------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
| Width                | Controls the width of the dropdown                                      | 100 - 400 px (default: 130)                                                                                             |
| Direction            | Controls whether the dropdown opens up or down                          | <p>• Up (default)<br>• Down</p><p><br><br>Visible when <strong>Show advanced settings</strong> is on</p>                |
| Horizontal position  | Controls horizontal positioning of the dropdown relative to the trigger | <p>• Left (default)<br>• Center<br>• Right</p><p><br><br>Visible when <strong>Show advanced settings</strong> is on</p> |
| Horizontal alignment | Controls horizontal alignment of the dropdown trigger                   | <p>• Left (default)<br>• Center<br>• Right</p>                                                                          |
| Show on hover        | Only displays the dropdown on hover                                     | <p>Checkbox (default: false)<br><br>Visible when <strong>Show advanced settings</strong> is on</p>                      |

### Display

| Setting    | Description                        | Options                                                                                                                            |
| ---------- | ---------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- |
| Visibility | Controls when the block is visible | <p>• All (default)<br>• Mobile only<br>• Desktop only</p><p><br><br>Visible when <strong>Show advanced settings</strong> is on</p> |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.brickspacelab.com/slab/content/blocks/basics/dropdown.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
