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: SwUiResponsiveContainer, sw-ui-responsive-container
  • Slots
Web Components

sw-ui-responsive-container

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

sw-ui-split-button

Next
Built with

Aspect-ratio-aware sizing wrapper used to host call surfaces inside <sw-ui-modal> so the experience adapts gracefully from ultra-wide monitors down to phones.

1<sw-ui-responsive-container aspect-ratio="16/9">
2 <sw-call-media></sw-call-media>
3</sw-ui-responsive-container>

Applies a tiered set of CSS rules based on viewport size:

  • ≥ 1280 px (large monitors): 80 vw, 16:9 aspect, height capped at (width × 9 / 16) + 300 px to leave room for controls.
  • 600 px – 1279 px (laptops, small monitors): 90 vw, same 16:9 baseline.
  • ≤ 600 px (mobile portrait): 100 vw minus a 20 px gutter, fluid height up to 85 svh — drops the strict aspect ratio so portrait content fills the screen.
  • ≤ 500 px tall, ≥ 600 px wide (landscape phones, short windows): 90 vw, 90 vh max, aspect ratio relaxed.

Class: SwUiResponsiveContainer · Module: packages/web-components/src/components/UI/layout/sw-ui-responsive-container.ts

class: SwUiResponsiveContainer, sw-ui-responsive-container

Slots

NameDescription
Default slot for the content the container should size around.