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: SwUiIcon, sw-ui-icon
  • Fields
  • name
  • size
  • Attributes
Web Components

sw-ui-icon

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

sw-ui-modal

Next
Built with

Inline SVG icon component backed by a curated icon set.

1<sw-ui-icon name="microphone"></sw-ui-icon>

Picks an SVG out of the bundled ICONS map (raw import of .svg files in this folder) by name and renders it inline so it inherits color from its host — use currentColor in your stylesheets to tint the icon. Width and height are written into the SVG markup at render time using the size property so layout doesn’t depend on extra CSS.

The full set of available names is exported as the IconName type. Unknown names render nothing rather than throwing.

Class: SwUiIcon · Module: packages/web-components/src/components/UI/icons/sw-ui-icon.ts

class: SwUiIcon, sw-ui-icon

Fields

name
IconNameDefaults to 'close'

name field.

size
numberDefaults to 24

size field.

Attributes

NameFieldInherited From
namename
sizesize