For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Log inSign up
Support
GuidesReferenceClick-to-Call
GuidesReferenceClick-to-Call
  • Core
    • Overview
  • Entities
    • SignalWire
    • Address
    • Participant
    • ClientPreferences
    • SelfCapabilities
    • SelfParticipant
    • User
    • WebRTCCall
  • Web Components
    • Overview
    • sw-audio-level
    • sw-call-controls
    • sw-call-dialpad
    • sw-call-media
    • sw-call-provider
    • sw-call-status
    • sw-call-widget
    • sw-click-to-call
    • sw-device-selector
    • sw-directory
    • sw-local-camera
    • sw-participant-controls
    • sw-participants
    • sw-self-media
    • sw-ui-alert
    • sw-ui-background
    • sw-ui-call-layout
    • sw-ui-content-drawer
    • sw-ui-control-bar
    • sw-ui-dialpad
    • sw-ui-dropup
    • sw-ui-icon
    • sw-ui-modal
    • sw-ui-responsive-container
    • sw-ui-split-button
    • sw-ui-transcript-view
LogoLogoSignalWire Docs
Log inSign up
Support
On this page
  • class: SwUiDropup, sw-ui-dropup
  • Fields
  • items
  • open
  • anchor
  • Attributes
  • CSS Properties
  • Events
Web Components

sw-ui-dropup

|View as Markdown|Open in Claude|
Was this page helpful?
Edit this page
Previous

sw-ui-icon

Next
Built with

Tiny pop-up menu that opens above its anchor and closes on outside click — the building block used for the chevron menus inside <sw-ui-split-button> (mic / camera / speaker selectors).

1<sw-ui-dropup>
2 <button slot="anchor">Open menu</button>
3 <ul>
4 <li>Item one</li>
5 <li>Item two</li>
6 </ul>
7</sw-ui-dropup>

Items are supplied as a JSON-encoded array on the items attribute (or the items property). Each entry is either a string (used as both label and id) or a DropUpItem object — { label, id, selected? }. Clicking an item dispatches sw-dropup-select with that entry as the detail and closes the menu. Any click outside the host dispatches sw-dropup-close.

Class: SwUiDropup · Module: packages/web-components/src/components/UI/controls/sw-ui-dropup.ts

class: SwUiDropup, sw-ui-dropup

Fields

items
Array<DropUpItem | string>Defaults to []

items field.

open
booleanDefaults to false

open field.

anchor
Element | undefined

anchor field.

Attributes

NameFieldInherited From
openopen
itemsitems

CSS Properties

NameDefaultDescription
--sw-dropup-offset[4px] - Gap between anchor and menu.
--sw-dropup-max-width[200px] - Maximum menu width.
--sw-dropup-bg[var(—bg-page)] - Menu background.
--sw-dropup-border[1px solid var(—border-default)] - Menu border.
--sw-dropup-radius[var(—radius-md)] - Menu border-radius.
--sw-dropup-shadow[var(—shadow-md)] - Menu box-shadow.
--sw-dropup-color[var(—fg-default)] - Item text color.
--sw-dropup-item-hover[var(—bg-surface)] - Item hover background.
--sw-dropup-item-active[var(—bg-surface-raised)] - Selected item background.

Events

NameDetailDescription
sw-dropup-close—Outside click closed the menu. No detail.
sw-dropup-select—User picked an item.