[**Documentation**](../../../../README)

***

[Documentation](../../../../README) / [@zerotal/flow](../../README) / [index](../README) / Dropdown

# Function: Dropdown()

> **Dropdown**(`props`): [`HtmlNode`](../type-aliases/HtmlNode)

Defined in: [flow/src/components.ts:571](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/flow/src/components.ts#L571)

A click-to-open menu (Alpine-driven, client-only) with full keyboard support —
arrow keys, Home/End, Escape and click-outside — and correct menu ARIA roles.

## Parameters

### props

[`DropdownProps`](../interfaces/DropdownProps)

## Returns

[`HtmlNode`](../type-aliases/HtmlNode)

## Remarks

Renders a default button labelled by `label` (or `"Menu"`), or your own `trigger`
node when provided. `align` (default `"left"`) sets which edge the panel opens from;
`children` are the menu items.

## Example

```tsx
<Dropdown label="Account" align="right">
  <Link href="/profile">Profile</Link>
  <Link href="/logout">Sign out</Link>
</Dropdown>
```
