> ## Documentation Index
> Fetch the complete documentation index at: https://www.beeq.design/llms.txt
> Use this file to discover all available pages before exploring further.

# Dropdown

> Dropdowns provide users with a compact and organized list of options, actions, or destinations from a trigger.

![BEEQ Dropdown component overview](https://mintcdn.com/beeq/wg4EwK5G4l2plt8W/components/images/dropdown/dropdown-overview-light.svg?fit=max\&auto=format\&n=wg4EwK5G4l2plt8W\&q=85\&s=99d1f9b8409df09c80f151b2b174f961)

Dropdown component overview

A dropdown surfaces a floating panel of options, actions, or destinations from a compact trigger. Use one when you need to keep choices accessible without taking over the interface.

> [!NOTE]
>
> `bq-dropdown` needs two slots: `trigger` for the element users interact with, and the default slot for the panel content. It uses `bq-panel` under the hood and commonly contains `bq-option-list`, `bq-option`, and `bq-option-group`.

## When to use

> [card]
>
> Use dropdowns when
>
> * You have more than 3 options and need to keep the interface compact
> * Users need a list of available actions, destinations, or values from a trigger
> * The choices are related and can be scanned after opening the panel
> * You need a menu, select-like surface, or contextual action list without taking over the page

> [card]
>
> Do not use dropdowns when
>
> * You have less than 3 options that can stay visible on the page
> * The options are critical and should not be hidden behind an extra interaction
> * The panel would cover important content, links, buttons, or other active controls
> * The list is too long, unclear, or better handled by search, filters, tabs, or a full page flow

> [!TIP]
>
> Use [`bq-select`](https://www.beeq.design/components/select) when a chosen value needs form submission or validation, [`bq-radio-group`](https://www.beeq.design/components/radio) when a few named choices can stay visible, and [`bq-button`](https://www.beeq.design/components/button) on its own for a single action. A `bq-button` can also be the dropdown trigger.

## Patterns

Dropdowns support compact action menus and panel-based selection patterns.

> [card] Dropdown
>
> A dropdown is useful for providing users with a list of options in a compact and organized manner. It is primarily used to initiate an action or direct the user to a new page or modal.

> [card] Dropdown panel
>
> Presents related actions or destinations. The panel slot can hold custom selection content, but `bq-dropdown` does not submit or validate a chosen value; use `bq-select` when the selection belongs to a form.

> [card] Single select
>
> Enables users to choose one item from a predefined list. Selected choices should be visibly highlighted so users can understand the current value.

> [card] Multi-select
>
> Allows users to apply more than one choice from the same panel. Use `keep-open-on-select` when the dropdown should remain open after each selection.

## Anatomy

![Dropdown anatomy](https://mintcdn.com/beeq/wg4EwK5G4l2plt8W/components/images/dropdown/dropdown-anatomy-light.svg?fit=max\&auto=format\&n=wg4EwK5G4l2plt8W\&q=85\&s=d5e3522402f67408946a91b071077599)

Dropdown anatomy

A dropdown is composed of a trigger and a floating panel. The trigger can be a button, avatar, icon button, or another appropriate interactive element. The panel contains the options or custom content users can act on.

| Part | Element | Description |
| - | - | - |
| **1** | Trigger | The slotted element that opens and closes the dropdown |
| **2** | Label | The trigger's visible text that communicates the dropdown purpose or content |
| **3** | Chevron or cue | Visual indicator that communicates whether the dropdown is open or closed |
| **4** | Panel | The floating surface rendered by `bq-panel` under the hood |

> [!TIP]
>
> The panel should contain a list of related options, actions, or destinations.
> Use [`bq-option-list`](https://www.beeq.design/components/option-list) with [`bq-option`](https://www.beeq.design/components/option) and [`bq-option-group`](https://www.beeq.design/components/option-group) for common dropdown patterns, or add custom content when you need a more specific layout or interaction.

## Design guidelines

### Chevron direction

Chevrons on the trigger must reflect the current state of the panel. Use a downward-pointing chevron when the panel is closed, and switch to an upward-pointing chevron when it is open. Reversing this communicates the wrong state to users and erodes trust in the interface.

> [!WARNING]
>
> `bq-dropdown` does not manage chevron rotation automatically. Listen to the `bqOpen` event and update the icon name (`caret-up` / `caret-down`) or apply a CSS rotation on your trigger accordingly.

### Data ordering

Arrange options alphabetically or by a meaningful semantic order, such as frequency of use or logical progression. A randomly ordered list forces users to scan every item before finding what they need.

## Usage

### Default

The trigger can be any appropriate interactive element, but in most cases a `bq-button` with a `bq-icon` works well for navigation, selection, or action menus. Use the `open` attribute when you need to control the visible state.

```html HTML icon="html5" expandable theme={"theme":{"light":"one-light","dark":"night-owl"}}
<bq-dropdown>
  <bq-button slot="trigger">
    Dropdown
    <bq-icon name="caret-down" slot="suffix"></bq-icon>
  </bq-button>

  <bq-option-list>
    <bq-option value="users">
      <bq-icon name="users" slot="prefix"></bq-icon>
      <span>Users</span>
    </bq-option>

    <bq-option value="profile">
      <bq-icon name="user" slot="prefix"></bq-icon>
      <span>My profile</span>
    </bq-option>

    <bq-option value="dashboard">
      <bq-icon name="sliders" slot="prefix"></bq-icon>
      <span>Dashboard</span>
    </bq-option>

    <bq-option value="settings">
      <bq-icon name="gear" slot="prefix"></bq-icon>
      <span>Settings</span>
    </bq-option>

    <bq-option value="logout">
      <span>Logout</span>
      <bq-icon name="sign-out" slot="suffix"></bq-icon>
    </bq-option>
  </bq-option-list>
</bq-dropdown>
```

```jsx React icon="react" expandable theme={"theme":{"light":"one-light","dark":"night-owl"}}
import { BqButton, BqDropdown, BqIcon, BqOption, BqOptionList } from "@beeq/react";

<BqDropdown>
  <BqButton slot="trigger">
    Dropdown
    <BqIcon name="caret-down" slot="suffix" />
  </BqButton>

  <BqOptionList>
    <BqOption value="users">
      <BqIcon name="users" slot="prefix" />
      <span>Users</span>
    </BqOption>

    <BqOption value="profile">
      <BqIcon name="user" slot="prefix" />
      <span>My profile</span>
    </BqOption>

    <BqOption value="dashboard">
      <BqIcon name="sliders" slot="prefix" />
      <span>Dashboard</span>
    </BqOption>

    <BqOption value="settings">
      <BqIcon name="gear" slot="prefix" />
      <span>Settings</span>
    </BqOption>

    <BqOption value="logout">
      <span>Logout</span>
      <BqIcon name="sign-out" slot="suffix" />
    </BqOption>
  </BqOptionList>
</BqDropdown>
```

```ts Angular icon="angular" expandable theme={"theme":{"light":"one-light","dark":"night-owl"}}
import { Component } from "@angular/core";
import { BqDropdown, BqButton, BqIcon, BqOptionList, BqOption } from "@beeq/angular/standalone";

@Component({
  selector: "app-root",
  standalone: true,
  imports: [BqDropdown, BqButton, BqIcon, BqOptionList, BqOption],
  template: `
    <bq-dropdown>
      <bq-button slot="trigger">
        Dropdown
        <bq-icon name="caret-down" slot="suffix"></bq-icon>
      </bq-button>

      <bq-option-list>
        <bq-option value="users">
          <bq-icon name="users" slot="prefix"></bq-icon>
          <span>Users</span>
        </bq-option>

        <bq-option value="profile">
          <bq-icon name="user" slot="prefix"></bq-icon>
          <span>My profile</span>
        </bq-option>

        <bq-option value="dashboard">
          <bq-icon name="sliders" slot="prefix"></bq-icon>
          <span>Dashboard</span>
        </bq-option>

        <bq-option value="settings">
          <bq-icon name="gear" slot="prefix"></bq-icon>
          <span>Settings</span>
        </bq-option>

        <bq-option value="logout">
          <span>Logout</span>
          <bq-icon name="sign-out" slot="suffix"></bq-icon>
        </bq-option>
      </bq-option-list>
    </bq-dropdown>
  `,
})
export class AppComponent {}
```

```vue Vue icon="vuejs" expandable theme={"theme":{"light":"one-light","dark":"night-owl"}}
<script setup lang="ts">
import { BqButton, BqDropdown, BqIcon, BqOption, BqOptionList } from "@beeq/vue";
</script>

<template>
  <BqDropdown>
    <BqButton slot="trigger">
      Dropdown
      <BqIcon name="caret-down" slot="suffix" />
    </BqButton>

    <BqOptionList>
      <BqOption value="users">
        <BqIcon name="users" slot="prefix" />
        <span>Users</span>
      </BqOption>

      <BqOption value="profile">
        <BqIcon name="user" slot="prefix" />
        <span>My profile</span>
      </BqOption>

      <BqOption value="dashboard">
        <BqIcon name="sliders" slot="prefix" />
        <span>Dashboard</span>
      </BqOption>

      <BqOption value="settings">
        <BqIcon name="gear" slot="prefix" />
        <span>Settings</span>
      </BqOption>

      <BqOption value="logout">
        <span>Logout</span>
        <BqIcon name="sign-out" slot="suffix" />
      </BqOption>
    </BqOptionList>
  </BqDropdown>
</template>
```

> [!NOTE]
>
> While the panel is open, the dropdown blocks page scrolling by default. Use `disable-scroll-lock` to allow the page to scroll behind it.
> If the dropdown sits inside a scrollable area, scrolling that area will close the panel — you can see this behavior on this documentation page.

## Options

**Allowed `placement` values:** `bottom-start` (default), `bottom`, `bottom-end`, `top`, `top-start`, `top-end`, `right`, `right-start`, `right-end`, `left`, `left-start`, `left-end`.

**Allowed `strategy` values:** `fixed` (default), `absolute`.

### Placement

Use the `placement` attribute when you need fine-grained control over the panel position. `bottom-start` anchors the panel to the start side of the trigger, while `bottom-end` aligns it to the end side.

```html HTML icon="html5" expandable theme={"theme":{"light":"one-light","dark":"night-owl"}}
<bq-dropdown placement="bottom-start">
  <bq-button slot="trigger">
    Bottom start
    <bq-icon name="caret-down" slot="suffix"></bq-icon>
  </bq-button>
  <bq-option-list>
    <bq-option value="users">
      <bq-icon name="users" slot="prefix"></bq-icon>
      <span>Users</span>
    </bq-option>
    <bq-option value="profile">
      <bq-icon name="user" slot="prefix"></bq-icon>
      <span>My profile</span>
    </bq-option>
    <bq-option value="dashboard">
      <bq-icon name="sliders" slot="prefix"></bq-icon>
      <span>Dashboard</span>
    </bq-option>
  </bq-option-list>
</bq-dropdown>

<bq-dropdown placement="bottom-end">
  <bq-button slot="trigger">
    Bottom end
    <bq-icon name="caret-down" slot="suffix"></bq-icon>
  </bq-button>
  <bq-option-list>
    <bq-option value="users">
      <bq-icon name="users" slot="prefix"></bq-icon>
      <span>Users</span>
    </bq-option>
    <bq-option value="profile">
      <bq-icon name="user" slot="prefix"></bq-icon>
      <span>My profile</span>
    </bq-option>
    <bq-option value="dashboard">
      <bq-icon name="sliders" slot="prefix"></bq-icon>
      <span>Dashboard</span>
    </bq-option>
  </bq-option-list>
</bq-dropdown>
```

```jsx React icon="react" expandable theme={"theme":{"light":"one-light","dark":"night-owl"}}
import { BqButton, BqDropdown, BqIcon, BqOption, BqOptionList } from "@beeq/react";

<BqDropdown placement="bottom-start">
  <BqButton slot="trigger">
    Bottom start
    <BqIcon name="caret-down" slot="suffix" />
  </BqButton>
  <BqOptionList>
    <BqOption value="users">
      <BqIcon name="users" slot="prefix" />
      <span>Users</span>
    </BqOption>
    <BqOption value="profile">
      <BqIcon name="user" slot="prefix" />
      <span>My profile</span>
    </BqOption>
    <BqOption value="dashboard">
      <BqIcon name="sliders" slot="prefix" />
      <span>Dashboard</span>
    </BqOption>
  </BqOptionList>
</BqDropdown>

<BqDropdown placement="bottom-end">
  <BqButton slot="trigger">
    Bottom end
    <BqIcon name="caret-down" slot="suffix" />
  </BqButton>
  <BqOptionList>
    <BqOption value="users">
      <BqIcon name="users" slot="prefix" />
      <span>Users</span>
    </BqOption>
    <BqOption value="profile">
      <BqIcon name="user" slot="prefix" />
      <span>My profile</span>
    </BqOption>
    <BqOption value="dashboard">
      <BqIcon name="sliders" slot="prefix" />
      <span>Dashboard</span>
    </BqOption>
  </BqOptionList>
</BqDropdown>
```

```ts Angular icon="angular" expandable theme={"theme":{"light":"one-light","dark":"night-owl"}}
import { Component } from "@angular/core";
import { BqDropdown, BqButton, BqIcon, BqOptionList, BqOption } from "@beeq/angular/standalone";

@Component({
  selector: "app-root",
  standalone: true,
  imports: [BqDropdown, BqButton, BqIcon, BqOptionList, BqOption],
  template: `
    <bq-dropdown placement="bottom-start">
      <bq-button slot="trigger">
        Bottom start
        <bq-icon name="caret-down" slot="suffix"></bq-icon>
      </bq-button>
      <bq-option-list>
        <bq-option value="users">
          <bq-icon name="users" slot="prefix"></bq-icon>
          <span>Users</span>
        </bq-option>
        <bq-option value="profile">
          <bq-icon name="user" slot="prefix"></bq-icon>
          <span>My profile</span>
        </bq-option>
        <bq-option value="dashboard">
          <bq-icon name="sliders" slot="prefix"></bq-icon>
          <span>Dashboard</span>
        </bq-option>
      </bq-option-list>
    </bq-dropdown>

    <bq-dropdown placement="bottom-end">
      <bq-button slot="trigger">
        Bottom end
        <bq-icon name="caret-down" slot="suffix"></bq-icon>
      </bq-button>
      <bq-option-list>
        <bq-option value="users">
          <bq-icon name="users" slot="prefix"></bq-icon>
          <span>Users</span>
        </bq-option>
        <bq-option value="profile">
          <bq-icon name="user" slot="prefix"></bq-icon>
          <span>My profile</span>
        </bq-option>
        <bq-option value="dashboard">
          <bq-icon name="sliders" slot="prefix"></bq-icon>
          <span>Dashboard</span>
        </bq-option>
      </bq-option-list>
    </bq-dropdown>
  `,
})
export class AppComponent {}
```

```vue Vue icon="vuejs" expandable theme={"theme":{"light":"one-light","dark":"night-owl"}}
<script setup lang="ts">
import { BqButton, BqDropdown, BqIcon, BqOption, BqOptionList } from "@beeq/vue";
</script>

<template>
  <BqDropdown placement="bottom-start">
    <BqButton slot="trigger">
      Bottom start
      <BqIcon name="caret-down" slot="suffix" />
    </BqButton>
    <BqOptionList>
      <BqOption value="users">
        <BqIcon name="users" slot="prefix" />
        <span>Users</span>
      </BqOption>
      <BqOption value="profile">
        <BqIcon name="user" slot="prefix" />
        <span>My profile</span>
      </BqOption>
      <BqOption value="dashboard">
        <BqIcon name="sliders" slot="prefix" />
        <span>Dashboard</span>
      </BqOption>
    </BqOptionList>
  </BqDropdown>

  <BqDropdown placement="bottom-end">
    <BqButton slot="trigger">
      Bottom end
      <BqIcon name="caret-down" slot="suffix" />
    </BqButton>
    <BqOptionList>
      <BqOption value="users">
        <BqIcon name="users" slot="prefix" />
        <span>Users</span>
      </BqOption>
      <BqOption value="profile">
        <BqIcon name="user" slot="prefix" />
        <span>My profile</span>
      </BqOption>
      <BqOption value="dashboard">
        <BqIcon name="sliders" slot="prefix" />
        <span>Dashboard</span>
      </BqOption>
    </BqOptionList>
  </BqDropdown>
</template>
```

### Custom trigger

Use a custom trigger when the dropdown needs a more specific visual entry point, such as an icon-only action menu or a profile avatar menu. The trigger must remain understandable and accessible.

```html HTML icon="html5" expandable theme={"theme":{"light":"one-light","dark":"night-owl"}}
<bq-dropdown>
  <bq-button appearance="secondary" size="medium" type="button" variant="standard" only-icon slot="trigger">
    <bq-icon name="dots-three-vertical"></bq-icon>
  </bq-button>
  <bq-option-list>
    <bq-option value="edit">
      <bq-icon name="pencil-simple" slot="prefix"></bq-icon>
      <span>Edit</span>
    </bq-option>
    <bq-option value="duplicate">
      <bq-icon name="copy" slot="prefix"></bq-icon>
      <span>Duplicate</span>
    </bq-option>
    <bq-option value="archive">
      <bq-icon name="archive" slot="prefix"></bq-icon>
      <span>Archive</span>
    </bq-option>
  </bq-option-list>
</bq-dropdown>

<bq-dropdown>
  <bq-button appearance="text" border="full" size="small" only-icon slot="trigger">
    <bq-avatar
      alt-text="User profile"
      image="https://images.unsplash.com/photo-1524593689594-aae2f26b75ab?auto=format&fit=crop&w=1000&q=80"
      initials="BQ"
      label="User profile menu"
    ></bq-avatar>
  </bq-button>
  <bq-option-list>
    <bq-option value="profile">
      <bq-icon name="user" slot="prefix"></bq-icon>
      <span>My profile</span>
    </bq-option>
    <bq-option value="settings">
      <bq-icon name="gear" slot="prefix"></bq-icon>
      <span>Settings</span>
    </bq-option>
    <bq-option value="logout">
      <span>Logout</span>
      <bq-icon name="sign-out" slot="suffix"></bq-icon>
    </bq-option>
  </bq-option-list>
</bq-dropdown>
```

```jsx React icon="react" expandable theme={"theme":{"light":"one-light","dark":"night-owl"}}
import { BqAvatar, BqButton, BqDropdown, BqIcon, BqOption, BqOptionList } from "@beeq/react";

<BqDropdown>
  <BqButton appearance="secondary" size="medium" type="button" variant="standard" onlyIcon slot="trigger">
    <BqIcon name="dots-three-vertical" />
  </BqButton>
  <BqOptionList>
    <BqOption value="edit">
      <BqIcon name="pencil-simple" slot="prefix" />
      <span>Edit</span>
    </BqOption>
    <BqOption value="duplicate">
      <BqIcon name="copy" slot="prefix" />
      <span>Duplicate</span>
    </BqOption>
    <BqOption value="archive">
      <BqIcon name="archive" slot="prefix" />
      <span>Archive</span>
    </BqOption>
  </BqOptionList>
</BqDropdown>

<BqDropdown>
  <BqButton appearance="text" border="full" size="small" onlyIcon slot="trigger">
    <BqAvatar
      altText="User profile"
      image="https://images.unsplash.com/photo-1524593689594-aae2f26b75ab?auto=format&fit=crop&w=1000&q=80"
      initials="BQ"
      label="User profile menu"
    />
  </BqButton>
  <BqOptionList>
    <BqOption value="profile">
      <BqIcon name="user" slot="prefix" />
      <span>My profile</span>
    </BqOption>
    <BqOption value="settings">
      <BqIcon name="gear" slot="prefix" />
      <span>Settings</span>
    </BqOption>
    <BqOption value="logout">
      <span>Logout</span>
      <BqIcon name="sign-out" slot="suffix" />
    </BqOption>
  </BqOptionList>
</BqDropdown>
```

```ts Angular icon="angular" expandable theme={"theme":{"light":"one-light","dark":"night-owl"}}
import { Component } from "@angular/core";
import { BqDropdown, BqButton, BqIcon, BqOptionList, BqOption, BqAvatar } from "@beeq/angular/standalone";

@Component({
  selector: "app-root",
  standalone: true,
  imports: [BqDropdown, BqButton, BqIcon, BqOptionList, BqOption, BqAvatar],
  template: `
    <bq-dropdown>
      <bq-button appearance="secondary" size="medium" type="button" variant="standard" only-icon slot="trigger">
        <bq-icon name="dots-three-vertical"></bq-icon>
      </bq-button>
      <bq-option-list>
        <bq-option value="edit">
          <bq-icon name="pencil-simple" slot="prefix"></bq-icon>
          <span>Edit</span>
        </bq-option>
        <bq-option value="duplicate">
          <bq-icon name="copy" slot="prefix"></bq-icon>
          <span>Duplicate</span>
        </bq-option>
        <bq-option value="archive">
          <bq-icon name="archive" slot="prefix"></bq-icon>
          <span>Archive</span>
        </bq-option>
      </bq-option-list>
    </bq-dropdown>

    <bq-dropdown>
      <bq-button appearance="text" border="full" size="small" only-icon slot="trigger">
        <bq-avatar
          alt-text="User profile"
          image="https://images.unsplash.com/photo-1524593689594-aae2f26b75ab?auto=format&fit=crop&w=1000&q=80"
          initials="BQ"
          label="User profile menu"
          ></bq-avatar>
        </bq-button>
        <bq-option-list>
          <bq-option value="profile">
            <bq-icon name="user" slot="prefix"></bq-icon>
            <span>My profile</span>
          </bq-option>
          <bq-option value="settings">
            <bq-icon name="gear" slot="prefix"></bq-icon>
            <span>Settings</span>
          </bq-option>
          <bq-option value="logout">
            <span>Logout</span>
            <bq-icon name="sign-out" slot="suffix"></bq-icon>
          </bq-option>
        </bq-option-list>
      </bq-dropdown>
  `,
})
export class AppComponent {}
```

```vue Vue icon="vuejs" expandable theme={"theme":{"light":"one-light","dark":"night-owl"}}
<script setup lang="ts">
import { BqAvatar, BqButton, BqDropdown, BqIcon, BqOption, BqOptionList } from "@beeq/vue";
</script>

<template>
  <BqDropdown>
    <BqButton appearance="secondary" size="medium" type="button" variant="standard" onlyIcon slot="trigger">
      <BqIcon name="dots-three-vertical" />
    </BqButton>
    <BqOptionList>
      <BqOption value="edit">
        <BqIcon name="pencil-simple" slot="prefix" />
        <span>Edit</span>
      </BqOption>
      <BqOption value="duplicate">
        <BqIcon name="copy" slot="prefix" />
        <span>Duplicate</span>
      </BqOption>
      <BqOption value="archive">
        <BqIcon name="archive" slot="prefix" />
        <span>Archive</span>
      </BqOption>
    </BqOptionList>
  </BqDropdown>

  <BqDropdown>
    <BqButton appearance="text" border="full" size="small" onlyIcon slot="trigger">
      <BqAvatar
        altText="User profile"
        image="https://images.unsplash.com/photo-1524593689594-aae2f26b75ab?auto=format&fit=crop&w=1000&q=80"
        initials="BQ"
        label="User profile menu"
      />
    </BqButton>
    <BqOptionList>
      <BqOption value="profile">
        <BqIcon name="user" slot="prefix" />
        <span>My profile</span>
      </BqOption>
      <BqOption value="settings">
        <BqIcon name="gear" slot="prefix" />
        <span>Settings</span>
      </BqOption>
      <BqOption value="logout">
        <span>Logout</span>
        <BqIcon name="sign-out" slot="suffix" />
      </BqOption>
    </BqOptionList>
  </BqDropdown>
</template>
```

### Keep open

Use `keep-open-on-select` when the dropdown should stay open after a selection is made, enabling users to make multiple selections or navigate through related options without reopening the panel each time.

```html HTML icon="html5" expandable theme={"theme":{"light":"one-light","dark":"night-owl"}}
<bq-dropdown keep-open-on-select>
  <bq-button slot="trigger">
    Dropdown
    <bq-icon name="caret-down" slot="suffix"></bq-icon>
  </bq-button>
  <bq-option-list>
    <bq-option value="users">
      <bq-icon name="users" slot="prefix"></bq-icon>
      <span>Users</span>
    </bq-option>
    <bq-option value="profile">
      <bq-icon name="user" slot="prefix"></bq-icon>
      <span>My profile</span>
    </bq-option>
    <bq-option value="dashboard">
      <bq-icon name="sliders" slot="prefix"></bq-icon>
      <span>Dashboard</span>
    </bq-option>
    <bq-option value="settings">
      <bq-icon name="gear" slot="prefix"></bq-icon>
      <span>Settings</span>
    </bq-option>
    <bq-option value="logout">
      <span>Logout</span>
      <bq-icon name="sign-out" slot="suffix"></bq-icon>
    </bq-option>
  </bq-option-list>
</bq-dropdown>
```

```jsx React icon="react" expandable theme={"theme":{"light":"one-light","dark":"night-owl"}}
import { BqButton, BqDropdown, BqIcon, BqOption, BqOptionList } from "@beeq/react";

<BqDropdown keepOpenOnSelect>
  <BqButton slot="trigger">
    Dropdown
    <BqIcon name="caret-down" slot="suffix" />
  </BqButton>
  <BqOptionList>
    <BqOption value="users">
      <BqIcon name="users" slot="prefix" />
      <span>Users</span>
    </BqOption>
    <BqOption value="profile">
      <BqIcon name="user" slot="prefix" />
      <span>My profile</span>
    </BqOption>
    <BqOption value="dashboard">
      <BqIcon name="sliders" slot="prefix" />
      <span>Dashboard</span>
    </BqOption>
    <BqOption value="settings">
      <BqIcon name="gear" slot="prefix" />
      <span>Settings</span>
    </BqOption>
    <BqOption value="logout">
      <span>Logout</span>
      <BqIcon name="sign-out" slot="suffix" />
    </BqOption>
  </BqOptionList>
</BqDropdown>
```

```ts Angular icon="angular" expandable theme={"theme":{"light":"one-light","dark":"night-owl"}}
import { Component } from "@angular/core";
import { BqDropdown, BqButton, BqIcon, BqOptionList, BqOption } from "@beeq/angular/standalone";

@Component({
  selector: "app-root",
  standalone: true,
  imports: [BqDropdown, BqButton, BqIcon, BqOptionList, BqOption],
  template: `
    <bq-dropdown keep-open-on-select>
      <bq-button slot="trigger">
        Dropdown
        <bq-icon name="caret-down" slot="suffix"></bq-icon>
      </bq-button>
      <bq-option-list>
        <bq-option value="users">
          <bq-icon name="users" slot="prefix"></bq-icon>
          <span>Users</span>
        </bq-option>
        <bq-option value="profile">
          <bq-icon name="user" slot="prefix"></bq-icon>
          <span>My profile</span>
        </bq-option>
        <bq-option value="dashboard">
          <bq-icon name="sliders" slot="prefix"></bq-icon>
          <span>Dashboard</span>
        </bq-option>
        <bq-option value="settings">
          <bq-icon name="gear" slot="prefix"></bq-icon>
          <span>Settings</span>
        </bq-option>
        <bq-option value="logout">
          <span>Logout</span>
          <bq-icon name="sign-out" slot="suffix"></bq-icon>
        </bq-option>
      </bq-option-list>
    </bq-dropdown>
  `,
})
export class AppComponent {}
```

```vue Vue icon="vuejs" expandable theme={"theme":{"light":"one-light","dark":"night-owl"}}
<script setup lang="ts">
import { BqButton, BqDropdown, BqIcon, BqOption, BqOptionList } from "@beeq/vue";
</script>

<template>
  <BqDropdown keepOpenOnSelect>
    <BqButton slot="trigger">
      Dropdown
      <BqIcon name="caret-down" slot="suffix" />
    </BqButton>
    <BqOptionList>
      <BqOption value="users">
        <BqIcon name="users" slot="prefix" />
        <span>Users</span>
      </BqOption>
      <BqOption value="profile">
        <BqIcon name="user" slot="prefix" />
        <span>My profile</span>
      </BqOption>
      <BqOption value="dashboard">
        <BqIcon name="sliders" slot="prefix" />
        <span>Dashboard</span>
      </BqOption>
      <BqOption value="settings">
        <BqIcon name="gear" slot="prefix" />
        <span>Settings</span>
      </BqOption>
      <BqOption value="logout">
        <span>Logout</span>
        <BqIcon name="sign-out" slot="suffix" />
      </BqOption>
    </BqOptionList>
  </BqDropdown>
</template>
```

### With option group

Use option groups when you need to categorize and group options under specific headers. This gives users a clearer structure when the dropdown contains several related sets of choices.

```html HTML icon="html5" expandable theme={"theme":{"light":"one-light","dark":"night-owl"}}
<bq-dropdown>
  <bq-button slot="trigger">
    Dropdown
    <bq-icon name="caret-down" slot="suffix"></bq-icon>
  </bq-button>
  <bq-option-list>
    <bq-option-group>
      <span slot="header-label">Configuration</span>
      <bq-option value="users">
        <bq-icon name="users" slot="prefix"></bq-icon>
        <span>Users</span>
      </bq-option>
      <bq-option value="profile">
        <bq-icon name="user" slot="prefix"></bq-icon>
        <span>My profile</span>
      </bq-option>
      <bq-option value="settings">
        <bq-icon name="gear" slot="prefix"></bq-icon>
        <span>Settings</span>
      </bq-option>
    </bq-option-group>
  </bq-option-list>
</bq-dropdown>
```

```jsx React icon="react" expandable theme={"theme":{"light":"one-light","dark":"night-owl"}}
import { BqButton, BqDropdown, BqIcon, BqOption, BqOptionGroup, BqOptionList } from "@beeq/react";

<BqDropdown>
  <BqButton slot="trigger">
    Dropdown
    <BqIcon name="caret-down" slot="suffix" />
  </BqButton>
  <BqOptionList>
    <BqOptionGroup>
      <span slot="header-label">Configuration</span>
      <BqOption value="users">
        <BqIcon name="users" slot="prefix" />
        <span>Users</span>
      </BqOption>
      <BqOption value="profile">
        <BqIcon name="user" slot="prefix" />
        <span>My profile</span>
      </BqOption>
      <BqOption value="settings">
        <BqIcon name="gear" slot="prefix" />
        <span>Settings</span>
      </BqOption>
    </BqOptionGroup>
  </BqOptionList>
</BqDropdown>
```

```ts Angular icon="angular" expandable theme={"theme":{"light":"one-light","dark":"night-owl"}}
import { Component } from "@angular/core";
import { BqDropdown, BqButton, BqIcon, BqOptionList, BqOptionGroup, BqOption } from "@beeq/angular/standalone";

@Component({
  selector: "app-root",
  standalone: true,
  imports: [BqDropdown, BqButton, BqIcon, BqOptionList, BqOptionGroup, BqOption],
  template: `
    <bq-dropdown>
      <bq-button slot="trigger">
        Dropdown
        <bq-icon name="caret-down" slot="suffix"></bq-icon>
      </bq-button>
      <bq-option-list>
        <bq-option-group>
          <span slot="header-label">Configuration</span>
          <bq-option value="users">
            <bq-icon name="users" slot="prefix"></bq-icon>
            <span>Users</span>
          </bq-option>
          <bq-option value="profile">
            <bq-icon name="user" slot="prefix"></bq-icon>
            <span>My profile</span>
          </bq-option>
          <bq-option value="settings">
            <bq-icon name="gear" slot="prefix"></bq-icon>
            <span>Settings</span>
          </bq-option>
        </bq-option-group>
      </bq-option-list>
    </bq-dropdown>
  `,
})
export class AppComponent {}
```

```vue Vue icon="vuejs" expandable theme={"theme":{"light":"one-light","dark":"night-owl"}}
<script setup lang="ts">
import { BqButton, BqDropdown, BqIcon, BqOption, BqOptionGroup, BqOptionList } from "@beeq/vue";
</script>

<template>
  <BqDropdown>
    <BqButton slot="trigger">
      Dropdown
      <BqIcon name="caret-down" slot="suffix" />
    </BqButton>
    <BqOptionList>
      <BqOptionGroup>
        <span slot="header-label">Configuration</span>
        <BqOption value="users">
          <BqIcon name="users" slot="prefix" />
          <span>Users</span>
        </BqOption>
        <BqOption value="profile">
          <BqIcon name="user" slot="prefix" />
          <span>My profile</span>
        </BqOption>
        <BqOption value="settings">
          <BqIcon name="gear" slot="prefix" />
          <span>Settings</span>
        </BqOption>
      </BqOptionGroup>
    </BqOptionList>
  </BqDropdown>
</template>
```

### Panel size

Use `same-width` when the panel should match the trigger width. Use `panel-height` to override the panel height when the option list needs a predictable scroll area.

```html HTML icon="html5" expandable theme={"theme":{"light":"one-light","dark":"night-owl"}}
<bq-dropdown same-width panel-height="16rem">
  <bq-button slot="trigger">
    Choose a region
    <bq-icon name="caret-down" slot="suffix"></bq-icon>
  </bq-button>
  <bq-option-list>
    <bq-option value="emea"><span>Europe, Middle East &amp; Africa</span></bq-option>
    <bq-option value="amer"><span>Americas</span></bq-option>
    <bq-option value="apac"><span>Asia &amp; Pacific</span></bq-option>
  </bq-option-list>
</bq-dropdown>
```

```jsx React icon="react" expandable theme={"theme":{"light":"one-light","dark":"night-owl"}}
import { BqButton, BqDropdown, BqIcon, BqOption, BqOptionList } from "@beeq/react";

<BqDropdown sameWidth panelHeight="16rem">
  <BqButton slot="trigger">
    Choose a region
    <BqIcon name="caret-down" slot="suffix" />
  </BqButton>
  <BqOptionList>
    <BqOption value="emea"><span>Europe, Middle East &amp; Africa</span></BqOption>
    <BqOption value="amer"><span>Americas</span></BqOption>
    <BqOption value="apac"><span>Asia &amp; Pacific</span></BqOption>
  </BqOptionList>
</BqDropdown>
```

```ts Angular icon="angular" expandable theme={"theme":{"light":"one-light","dark":"night-owl"}}
import { Component } from "@angular/core";
import { BqDropdown, BqButton, BqIcon, BqOptionList, BqOption } from "@beeq/angular/standalone";

@Component({
  selector: "app-root",
  standalone: true,
  imports: [BqDropdown, BqButton, BqIcon, BqOptionList, BqOption],
  template: `
    <bq-dropdown same-width panel-height="16rem">
      <bq-button slot="trigger">
        Choose a region
        <bq-icon name="caret-down" slot="suffix"></bq-icon>
      </bq-button>
      <bq-option-list>
        <bq-option value="emea"><span>Europe, Middle East &amp; Africa</span></bq-option>
        <bq-option value="amer"><span>Americas</span></bq-option>
        <bq-option value="apac"><span>Asia &amp; Pacific</span></bq-option>
      </bq-option-list>
    </bq-dropdown>
  `,
})
export class AppComponent {}
```

```vue Vue icon="vuejs" expandable theme={"theme":{"light":"one-light","dark":"night-owl"}}
<script setup lang="ts">
import { BqButton, BqDropdown, BqIcon, BqOption, BqOptionList } from "@beeq/vue";
</script>

<template>
  <BqDropdown sameWidth panelHeight="16rem">
    <BqButton slot="trigger">
      Choose a region
      <BqIcon name="caret-down" slot="suffix" />
    </BqButton>
    <BqOptionList>
      <BqOption value="emea"><span>Europe, Middle East &amp; Africa</span></BqOption>
      <BqOption value="amer"><span>Americas</span></BqOption>
      <BqOption value="apac"><span>Asia &amp; Pacific</span></BqOption>
    </BqOptionList>
  </BqDropdown>
</template>
```

## Best practices

> [card]
>
> Do
>
> Use a `bq-button` as the trigger. It gives users a clear, clickable target and signals that interaction is available.

> [card]
>
> Don't
>
> Use a link-style trigger to open the dropdown panel. A dropdown opens a floating surface; it should not look like direct page navigation.

> [card]
>
> Do
>
> Use a downward chevron when the panel is closed and an upward chevron when it is open. The chevron should always match the actual state.

> [card]
>
> Don't
>
> Use the same chevron direction regardless of state. Users rely on the icon direction to understand whether the panel is open or closed.

> [card]
>
> Do
>
> Use short, clear labels for both the trigger and each option so users can quickly understand the context and available choices.

> [card]
>
> Don't
>
> Use long, vague, or technical labels. They slow users down and increase the risk of selecting the wrong option.

> [card]
>
> Do
>
> Arrange options alphabetically or in a meaningful semantic order so users can find what they need without scanning every item.

> [card]
>
> Don't
>
> Display a large, unordered list without structure. If users need search or filtering to navigate the options, consider a more appropriate pattern.

## Accessibility

`bq-dropdown` does not render its own ARIA role — accessible semantics come from the slotted trigger element. When a `bq-button` is used as the trigger, it exposes `role="button"` and `aria-disabled` automatically. The `bq-option-list` inside the panel renders with `role="listbox"`, and each `bq-option` carries `role="option"`, `aria-selected`, and `aria-disabled`.

**Developer responsibilities:** you must provide a meaningful visible label or `aria-label` on the trigger, especially for icon-only triggers. When using a `bq-avatar` as the trigger, you must supply the `label` prop to ensure screen readers announce the button purpose.

* The dropdown trigger must be reachable with <kbd>Tab</kbd> and expose a clear accessible label. Use a natively focusable element such as `bq-button`.
* The dropdown opens on trigger click, so a native button trigger opens it with <kbd>Enter</kbd> or <kbd>Space</kbd>.
* Each enabled `bq-option` is a tab stop. <kbd>Enter</kbd> or <kbd>Space</kbd> on the focused option selects it. `bq-dropdown` and `bq-option-list` do not add arrow-key navigation between options.
* Pressing <kbd>Esc</kbd> closes the dropdown, and <kbd>Tab</kbd> closes it when focus leaves the component.
* Only one panel stays open at a time. Opening a dropdown, select, or date picker closes any other open panel, unless it is nested inside that panel.
* For multi-select patterns, selection and deselection should remain visible and predictable.
* You must not rely on icons alone. Pair icon-only triggers with accessible labels and keep option text readable.

### Keyboard interaction

| Key | Context | Action |
| - | - | - |
| `Tab` | Focus moves to the trigger | Focuses the trigger; does not open the panel |
| `Enter` or `Space` | Native `<button>` trigger focused (such as `bq-button`) | Activates the trigger click, which toggles the panel |
| `Tab` | Panel open, focus moves to the next enabled `bq-option` | Moves focus to the option; the panel stays open |
| `Enter` or `Space` | `bq-option` focused | Selects the option; the panel closes unless `keep-open-on-select` is set |
| `Escape` | Panel open | Closes the panel |
| `Tab` | Panel open, focus leaves the dropdown | Closes the panel |

### Rules

| Rule | Strength | Verified by |
| - | - | - |
| Provide a visible label or `aria-label` on the trigger, especially for icon-only triggers | MUST | manual: inspect the trigger accessible name |
| Supply the `label` prop when a `bq-avatar` is the trigger | MUST | manual: inspect the avatar trigger accessible name |
| Make the trigger reachable with `Tab`; use a natively focusable element such as `bq-button` | MUST | manual: reach and activate the trigger using only the keyboard |
| Do not rely on icons alone; pair icon-only triggers with accessible labels | MUST NOT | manual: check icon-only triggers have readable accessible names |
| Keep selection and deselection visible and predictable for multi-select patterns | SHOULD | manual: select and deselect options and inspect the visible state |

## API reference

### Properties

| Property | Attribute | Description | Type | Default |
| - | - | - | - | - |
| `disableScrollLock` | `disable-scroll-lock` | If `true`, the dropdown panel will not lock the page body scroll when open | `boolean` | `false` |
| `disabled` | `disabled` | If `true`, the dropdown panel will not be shown | `boolean` | `false` |
| `distance` | `distance` | Represents the distance, gutter, or margin between the panel and the trigger element | `number` | `4` |
| `keepOpenOnSelect` | `keep-open-on-select` | If `true`, the panel will remain open after a selection is made | `boolean` | `false` |
| `open` | `open` | If `true`, the panel will be visible | `boolean` | `false` |
| `panelHeight` | `panel-height` | When set, it overrides the height of the dropdown panel | `string` | `undefined` |
| `placement` | `placement` | Position of the panel | `'top'` \| `'right'` \| `'bottom'` \| `'left'` \| `'top-start'` \| `'top-end'` \| `'right-start'` \| `'right-end'` \| `'bottom-start'` \| `'bottom-end'` \| `'left-start'` \| `'left-end'` | `'bottom-start'` |
| `sameWidth` | `same-width` | Whether the panel should have the same width as the trigger element | `boolean` | `false` |
| `skidding` | `skidding` | Represents the skidding between the panel and the trigger element | `number` | `0` |
| `strategy` | `strategy` | Defines the positioning strategy | `'fixed'` \| `'absolute'` | `'fixed'` |

### Invalid combinations

| Combination | Strength | Result |
| - | - | - |
| No child with `slot="trigger"` | MUST NOT | Nothing toggles the panel because the click listener attaches to the trigger |

### Events

| Event | Description | Type |
| - | - | - |
| `bqOpen` | Emitted when the dropdown panel is opened or closed | `CustomEvent<{ open: boolean }>` |

### Slots

| Slot | Description |
| - | - |
| *(default)* | The content of the dropdown panel |
| `trigger` | The trigger element that opens the dropdown panel |

### Shadow parts

| Part | Description |
| - | - |
| `base` | The component's internal wrapper |
| `trigger` | The `<div>` element that hosts the trigger element |
| `dropdown` | The `bq-panel` element used under the hood to display the dropdown panel |
| `panel` | The `<div>` element used to display and style the panel inside the `bq-panel` element |

### CSS custom properties

**CSS variables**

| Variable | Description | Default |
| - | - | - |
| `--bq-panel--background` | Panel background color | `var(--bq-ui--primary)` |
| `--bq-panel--border-color` | Panel border color | `transparent` |
| `--bq-panel--border-radius` | Panel border radius | `var(--bq-radius--s)` |
| `--bq-panel--border-style` | Panel border style | `none` |
| `--bq-panel--border-width` | Panel border width | `unset` |
| `--bq-panel--box-shadow` | Panel box shadow | `var(--bq-box-shadow--m)` |
| `--bq-panel--paddingY` | Vertical padding | `var(--bq-spacing-xs)` |
| `--bq-panel--padding-start` | Start padding | `var(--bq-spacing-xs)` |
| `--bq-panel--padding-end` | End padding | `var(--bq-spacing-xs)` |
| `--bq-panel--height` | Panel max height | `50vh` |
| `--bq-panel--width` | Panel width | `320px` |
| `--bq-panel-z-index` | Panel z-index applied when opened | `10` |

> [!TIP]
>
> Learn more about [styling with shadow parts](https://www.beeq.design/guides/styles.md#component-shadow-dom-parts) and [CSS custom properties](https://www.beeq.design/guides/styles.md#global-css-custom-properties).

## Resources

> [card] [Interactive playground](https://storybook.beeq.design/?path=/story/components-dropdown--default)
>
> Explore Dropdown examples in Storybook

> [card] [Source code](https://github.com/Endava/BEEQ/tree/main/packages/beeq/src/components/dropdown)
>
> View the dropdown component source on GitHub


## Related topics

- [Select](https://www.beeq.design/components/select.md)
- [Option List](https://www.beeq.design/components/option-list.md)
- [Shadows](https://www.beeq.design/foundations/shadows.md)
- [Option](https://www.beeq.design/components/option.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.