@theredhead — Frontend Library - v1.0.0
    Preparing search index...

    A dropdown menu triggered by projected content (typically a button).

    Projects a trigger element and a list of <ui-dropdown-item> entries. The menu opens on click and closes when an item is selected, the backdrop is clicked, or Escape is pressed.

    <ui-dropdown-menu>
    <ui-button trigger>Actions ▾</ui-button>
    <ui-dropdown-item (action)="onEdit()">Edit</ui-dropdown-item>
    <ui-dropdown-item (action)="onDelete()">Delete</ui-dropdown-item>
    </ui-dropdown-menu>
    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    align: InputSignal<DropdownAlign> = ...

    Horizontal alignment of the menu relative to the trigger.

    ariaLabel: InputSignal<string> = ...

    Accessible label for the menu.

    isOpen: WritableSignal<boolean> = ...

    Whether the menu is currently open.

    Methods

    • Close the menu.

      Returns void

    • Toggle the menu open/closed.

      Returns void