### Install and Serve Example App Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/projects/react-swc-starter-webpack/README.md Install dependencies and start the build process to serve the example application. This command builds the production version and serves it using http-server. ```bash npm run install yarn install npm run serve ``` -------------------------------- ### Install @swc-uxp-wrappers/help-text Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/help-text/README.md Install the package using yarn. ```bash yarn add @swc-uxp-wrappers/help-text ``` -------------------------------- ### Install @swc-uxp-wrappers/utils Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/utils/README.md Install the utility package using yarn. ```bash yarn add @swc-uxp-wrappers/utils ``` -------------------------------- ### Install @swc-uxp-wrappers/tags Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/tags/README.md Install the package using yarn. ```bash yarn add @swc-uxp-wrappers/tags ``` -------------------------------- ### Install Search Wrapper Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/search/README.md Install the package using yarn. ```bash yarn add @swc-uxp-wrappers/search ``` -------------------------------- ### Install Toast Wrapper Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/toast/README.md Install the @swc-uxp-wrappers/toast package using yarn. ```bash yarn add @swc-uxp-wrappers/toast ``` -------------------------------- ### Install @swc-uxp-wrappers/card Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/card/README.md Install the package using yarn. ```bash yarn add @swc-uxp-wrappers/card ``` -------------------------------- ### Install Swatch UXP Wrapper Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/swatch/README.md Install the @swc-uxp-wrappers/swatch package using Yarn. ```bash yarn add @swc-uxp-wrappers/swatch ``` -------------------------------- ### Install Picker Button Wrapper Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/picker-button/README.md Install the package using yarn. ```bash yarn add @swc-uxp-wrappers/picker-button ``` -------------------------------- ### Install UXP Table Wrapper Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/table/README.md Install the @swc-uxp-wrappers/table package using yarn. ```bash yarn add @swc-uxp-wrappers/table ``` -------------------------------- ### Install Action Button Wrapper Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/action-button/README.md Install the UXP wrapper for the Spectrum Action Button using Yarn. ```bash yarn add @swc-uxp-wrappers/action-button ``` -------------------------------- ### Install Radio Wrapper Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/radio/README.md Install the @swc-uxp-wrappers/radio package using yarn. ```bash yarn add @swc-uxp-wrappers/radio ``` -------------------------------- ### Install Divider Wrapper Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/divider/README.md Install the @swc-uxp-wrappers/divider package using yarn. ```bash yarn add @swc-uxp-wrappers/divider ``` -------------------------------- ### Serve Application Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/projects/swc-starter-webpack/README.md Build the production version and serve the example app with a web server. ```bash npm run serve ``` -------------------------------- ### Install Quick Actions Package Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/quick-actions/README.md Install the UXP wrapper package for Spectrum Quick Actions using Yarn. ```bash yarn add @swc-uxp-wrappers/quick-actions ``` -------------------------------- ### Install Illustrated Message UXP Wrapper Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/illustrated-message/README.md Install the package using yarn. ```bash yarn add @swc-uxp-wrappers/illustrated-message ``` -------------------------------- ### Install Button Wrapper Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/button/README.md Install the @swc-uxp-wrappers/button package using yarn. ```bash yarn add @swc-uxp-wrappers/button ``` -------------------------------- ### Install Banner Wrapper Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/banner/README.md Install the @swc-uxp-wrappers/banner package using yarn. ```bash yarn add @swc-uxp-wrappers/banner ``` -------------------------------- ### Install UXP Asset Wrapper Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/asset/README.md Install the @swc-uxp-wrappers/asset package using Yarn. ```bash yarn add @swc-uxp-wrappers/asset ``` -------------------------------- ### Install Dependencies Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/projects/swc-starter-webpack/README.md Install project dependencies using npm or yarn. ```bash npm run install yarn install ``` -------------------------------- ### Install Avatar Wrapper Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/avatar/README.md Install the @swc-uxp-wrappers/avatar package using yarn. ```bash yarn add @swc-uxp-wrappers/avatar ``` -------------------------------- ### Install Dialog Wrapper Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/dialog/README.md Install the @swc-uxp-wrappers/dialog package using Yarn. ```bash yarn add @swc-uxp-wrappers/dialog ``` -------------------------------- ### Install Tooltip Wrapper Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/tooltip/README.md Install the tooltip wrapper package using yarn. ```bash yarn add @swc-uxp-wrappers/tooltip ``` -------------------------------- ### Basic Quick Actions HTML Example Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/quick-actions/README.md A simple HTML example demonstrating the usage of the custom element. ```html ``` -------------------------------- ### Install Spectrum Meter UXP Wrapper Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/meter/README.md Install the UXP wrapper package for Spectrum Meter using Yarn. ```bash yarn add @swc-uxp-wrappers/meter ``` -------------------------------- ### Install Switch Wrapper Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/switch/README.md Install the UXP wrapper for the Spectrum Web Components Switch package using yarn. ```bash yarn add @swc-uxp-wrappers/switch ``` -------------------------------- ### Install Action Group Wrapper Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/action-group/README.md Install the UXP wrapper for the Spectrum Action Group using Yarn. ```bash yarn add @swc-uxp-wrappers/action-group ``` -------------------------------- ### Install Field Group Wrapper Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/field-group/README.md Install the package using yarn. ```bash yarn add @swc-uxp-wrappers/field-group ``` -------------------------------- ### Install Button Group Wrapper Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/button-group/README.md Install the package using yarn. ```bash yarn add @swc-uxp-wrappers/button-group ``` -------------------------------- ### Basic Help Text Example Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/help-text/README.md A simple HTML example demonstrating the usage of the custom element. ```html ``` -------------------------------- ### Install Link Wrapper Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/link/README.md Install the UXP wrapper for the Spectrum Web Components Link package using Yarn. ```bash yarn add @swc-uxp-wrappers/link ``` -------------------------------- ### Install Overlay Wrapper Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/overlay/README.md Install the overlay wrapper package using yarn. ```bash yarn add @swc-uxp-wrappers/overlay ``` -------------------------------- ### Install Textfield Wrapper Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/textfield/README.md Install the Spectrum Textfield UXP wrapper package using Yarn. ```bash yarn add @swc-uxp-wrappers/textfield ``` -------------------------------- ### Install Field Label Wrapper Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/field-label/README.md Install the @swc-uxp-wrappers/field-label package using yarn. ```bash yarn add @swc-uxp-wrappers/field-label ``` -------------------------------- ### Install Number Field Wrapper Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/number-field/README.md Install the @swc-uxp-wrappers/number-field package using yarn. ```bash yarn add @swc-uxp-wrappers/number-field ``` -------------------------------- ### Install Spectrum Menu UXP Wrapper Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/menu/README.md Install the UXP wrapper package for Spectrum Menu using Yarn. ```bash yarn add @swc-uxp-wrappers/menu ``` -------------------------------- ### Install Checkbox Wrapper Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/checkbox/README.md Install the checkbox wrapper package using yarn. ```bash yarn add @swc-uxp-wrappers/checkbox ``` -------------------------------- ### Basic Action Button Example Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/action-button/README.md A simple HTML example demonstrating the usage of the `` custom element. ```html ``` -------------------------------- ### Basic Action Bar Example Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/action-bar/README.md A simple HTML example demonstrating the usage of the `` custom element in UXP. ```html ``` -------------------------------- ### Load Component Sample Usage File Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/projects/swc-starter-webpack/src/index.html Loads HTML content for a component's sample usage dynamically. Use this to fetch and display example code for specific components. ```javascript function loadComponentSampleUsageFile(tabName) { if ( document .getElementById(tabName) .innerHTML.includes( '' ) ) { var xhttp = new XMLHttpRequest(); xhttp.onreadystatechange = function () { if (this.readyState == 4 && this.status == 200) { reset(); document.getElementById(tabName).innerHTML = this.responseText; attachEvents(tabName); mainControl(); } }; xhttp.open( 'GET', 'example_usages/' + tabName + '.html', true ); xhttp.send(); } } ``` -------------------------------- ### Install Action Bar UXP Wrapper Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/action-bar/README.md Install the UXP wrapper for the Spectrum Web Components Action Bar using Yarn. ```bash yarn add @swc-uxp-wrappers/action-bar ``` -------------------------------- ### Install Sidenav Wrapper Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/sidenav/README.md Install the UXP wrapper for the Spectrum Web Components Sidenav package using Yarn. ```bash yarn add @swc-uxp-wrappers/sidenav ``` -------------------------------- ### Basic Field Label Example Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/field-label/README.md A simple HTML example demonstrating the usage of the '' custom element. ```html ``` -------------------------------- ### Add @swc-uxp-wrappers/popover to Project Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/popover/README.md Install the package using yarn. This is the first step to integrate the popover component. ```bash yarn add @swc-uxp-wrappers/popover ``` -------------------------------- ### Basic Table Usage Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/table/README.md A simple example demonstrating the usage of the '' custom element. ```html ``` -------------------------------- ### Render Basic Link Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/link/README.md Example of rendering a basic '' element in HTML. ```html ``` -------------------------------- ### Add Package Dependency Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/projects/swc-starter-webpack/README.md Example of adding a Spectrum Web Component wrapper package to package.json. ```json { "dependencies": { "@swc-uxp-wrappers/banner": "^0.0.1" } } ``` -------------------------------- ### Basic Radio Example Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/radio/README.md Render a basic Spectrum radio button using the custom element ``. ```html ``` -------------------------------- ### Package JSON Dependencies Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/projects/react-swc-starter-webpack/README.md Example of required dependencies in package.json for integrating SWC React Wrappers and SWC UXP Wrappers. ```json "dependencies": { "@swc-uxp-wrappers/banner": "^0.0.1", "@swc-react/banner": "0.9.5-react.3120" } ``` -------------------------------- ### Basic Divider Example Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/divider/README.md Render a simple horizontal divider using the custom element. ```html ``` -------------------------------- ### Open Tab Functionality Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/projects/swc-starter-webpack/src/index.html Manages the display of tabbed content and activates the selected tab. This is essential for navigating between different component examples. ```javascript function openTab(evt, tabName) { var i, tabcontent, tablinks; tabcontent = document.getElementsByClassName('tabcontent'); for (i = 0; i < tabcontent.length; i++) { tabcontent[i].style.display = 'none'; } tablinks = document.getElementsByClassName('tablinks'); for (i = 0; i < tablinks.length; i++) { tablinks[i].className = tablinks[i].className.replace( ' active', '' ); } document.getElementById(tabName).style.display = 'block'; evt.currentTarget.className += ' active'; loadComponentSampleUsageFile(tabName); } ``` -------------------------------- ### Build Production Output Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/projects/react-swc-starter-webpack/README.md Generate the distribution output folder for the project. ```bash yarn build ``` -------------------------------- ### Import QuickActions Base Class Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/quick-actions/README.md Import the QuickActions base class for type hinting or extension purposes. ```javascript import { QuickActions } from '@swc-uxp-wrappers/quick-actions'; ``` -------------------------------- ### Import Overlay Base Class Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/overlay/README.md Import the `Overlay` base class if you need to use it as a type or for extension purposes. This allows for more advanced integration and customization. ```javascript import { Overlay } from '@swc-uxp-wrappers/overlay'; ``` -------------------------------- ### Basic Tooltip Usage Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/tooltip/README.md Render a basic tooltip component in your HTML. ```html ``` -------------------------------- ### Import HelpText Base Class Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/help-text/README.md Import the HelpText base class for type hinting or extension purposes. ```javascript import { HelpText } from '@swc-uxp-wrappers/help-text'; ``` -------------------------------- ### Basic Asset Component Usage Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/asset/README.md Render a basic '' component in your UXP plugin's HTML. ```html ``` -------------------------------- ### Import Action Bar Base Class Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/action-bar/README.md Import the `ActionBar` base class for type hinting or extension purposes within UXP. ```javascript import { ActionBar } from '@swc-uxp-wrappers/action-bar'; ``` -------------------------------- ### Import Toast Registration Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/toast/README.md Import the side effectful registration of '' to enable its functionality. ```javascript import '@swc-uxp-wrappers/toast/sp-toast.js'; ``` -------------------------------- ### Render Basic Swatch Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/swatch/README.md Render a basic '' element in your HTML. This will display a default swatch component. ```html ``` -------------------------------- ### Basic Card Usage Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/card/README.md Render a basic Spectrum Card component in HTML. ```html ``` -------------------------------- ### Render Basic Spectrum Meter Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/meter/README.md Render a basic element in your UXP plugin. Note: For labels, use the 'label' attribute to avoid known issues. ```html ``` -------------------------------- ### Import Action Button Base Class Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/action-button/README.md Import the `ActionButton` base class for type checking or extension purposes within UXP. ```javascript import { ActionButton } from '@swc-uxp-wrappers/action-button'; ``` -------------------------------- ### Import Menu Base Class Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/menu/README.md Import the Menu base class for type hinting or extension purposes. ```javascript import { Menu } from '@swc-uxp-wrappers/menu'; ``` -------------------------------- ### Import Banner Base Class Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/banner/README.md Import the Banner base class for type hinting or extension purposes. ```javascript import { Banner } from '@swc-uxp-wrappers/banner'; ``` -------------------------------- ### Import Asset Base Class Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/asset/README.md Import the Asset base class for type hinting or extension purposes within UXP plugins. ```javascript import { Asset } from '@swc-uxp-wrappers/asset'; ``` -------------------------------- ### Import Meter Base Class Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/meter/README.md Import the Meter base class for type hinting or extension purposes. ```javascript import { Meter } from '@swc-uxp-wrappers/meter'; ``` -------------------------------- ### Import Help Text Registration Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/help-text/README.md Import the side effectful registration of the custom element. ```javascript import '@swc-uxp-wrappers/help-text/sp-help-text.js'; ``` -------------------------------- ### Register Quick Actions Component Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/quick-actions/README.md Import the side effectful registration of the component for use in UXP. ```javascript import '@swc-uxp-wrappers/quick-actions/sp-quick-actions.js'; ``` -------------------------------- ### Webpack Configuration Aliases Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/projects/react-swc-starter-webpack/README.md Configure webpack aliases using '@swc-uxp-wrappers/utils' to ensure Spectrum Web Components function correctly in UXP. ```javascript import { aliases } from '@swc-uxp-wrappers/utils'; resolve: { extensions: ['.js', '.json'], // This is required for the spectrum web component to properly work in UXP alias: aliases, } ``` -------------------------------- ### Import Card Base Class Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/card/README.md Import the Card base class for type hinting or extension. ```javascript import { Card } from '@swc-uxp-wrappers/card'; ``` -------------------------------- ### Use Overlay Custom Element Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/overlay/README.md Render the `` custom element in your HTML. This is the basic usage of the overlay component. ```html ``` -------------------------------- ### Import Toast Base Class Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/toast/README.md Import the 'Toast' base class for type hinting or extension purposes. ```javascript import { Toast } from '@swc-uxp-wrappers/toast'; ``` -------------------------------- ### Extend Tooltip Class Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/tooltip/README.md Import the `Tooltip` base class for type hinting or extension purposes. ```javascript import { Tooltip } from '@swc-uxp-wrappers/tooltip'; ``` -------------------------------- ### Import Search Base Class Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/search/README.md Import the `Search` base class for type checking or extension purposes. ```javascript import { Search } from '@swc-uxp-wrappers/search'; ``` -------------------------------- ### Basic Button Usage Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/button/README.md Render a basic Spectrum Web Components button in your UXP application. ```html ``` -------------------------------- ### Register Spectrum Asset Component Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/asset/README.md Import the side effectful registration of the '' component for use in UXP. ```javascript import '@swc-uxp-wrappers/asset/sp-asset.js'; ``` -------------------------------- ### Import Radio Base Class Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/radio/README.md Import the `Radio` base class if you need to use it as a type or for extension purposes in your UXP components. ```javascript import { Radio } from '@swc-uxp-wrappers/radio'; ``` -------------------------------- ### Import Textfield Base Class Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/textfield/README.md Import the Textfield base class for type hinting or extension purposes. ```javascript import { Textfield } from '@swc-uxp-wrappers/textfield'; ``` -------------------------------- ### Import Switch Base Class Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/switch/README.md Import the `Switch` base class from the wrapper package for type checking or extension purposes. ```javascript import { Switch } from '@swc-uxp-wrappers/switch'; ``` -------------------------------- ### Import Button Base Class Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/button/README.md Import the Button base class for type hinting or extension purposes. ```javascript import { Button } from '@swc-uxp-wrappers/button'; ``` -------------------------------- ### Import Table Base Class Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/table/README.md Import the 'Table' base class for type hinting or extension purposes. ```javascript import { Table } from '@swc-uxp-wrappers/table'; ``` -------------------------------- ### Import Popover Base Class for Extension Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/popover/README.md Import the 'Popover' base class if you intend to extend its functionality or use it as a type. This allows for more advanced customization and integration. ```javascript import { Popover } from '@swc-uxp-wrappers/popover'; ``` -------------------------------- ### Basic Spectrum Menu Usage Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/menu/README.md Render a basic Spectrum Menu component in your HTML. ```html ``` -------------------------------- ### Basic Action Group Usage Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/action-group/README.md Render a basic Spectrum Action Group component in your UXP application. ```html ``` -------------------------------- ### Import Link Base Class Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/link/README.md Import the 'Link' base class for type checking or extension purposes. ```javascript import { Link } from '@swc-uxp-wrappers/link'; ``` -------------------------------- ### Import PickerButton Base Class Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/picker-button/README.md Import the `PickerButton` base class for type hinting or extension purposes. ```javascript import { PickerButton } from '@swc-uxp-wrappers/picker-button'; ``` -------------------------------- ### Basic Toast Element Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/toast/README.md Render a basic '' element in your HTML. ```html ``` -------------------------------- ### Import Swatch Base Class Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/swatch/README.md Import the 'Swatch' base class for type hinting or extension purposes. This allows you to use the Swatch class in your TypeScript or JavaScript code. ```javascript import { Swatch } from '@swc-uxp-wrappers/swatch'; ``` -------------------------------- ### Import Aliases from Utils Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/utils/README.md Import the 'aliases' object from the @swc-uxp-wrappers/utils package for use in your UXP project. ```javascript import { aliases } from '@swc-uxp-wrappers/utils' ``` -------------------------------- ### Basic Picker Button Usage Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/picker-button/README.md Render a basic Picker Button component in your HTML. ```html ``` -------------------------------- ### Basic Switch Usage Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/switch/README.md Render a basic switch component using the custom element tag ``. ```html ``` -------------------------------- ### Import Button Group Base Class Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/button-group/README.md Import the ButtonGroup base class for type hinting or extension. ```javascript import { ButtonGroup } from '@swc-uxp-wrappers/button-group'; ``` -------------------------------- ### Import Sidenav Base Class Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/sidenav/README.md Import the 'Sidenav' base class if you need to use it as a type or for extension purposes. This allows for more advanced customization or integration. ```javascript import { Sidenav } from '@swc-uxp-wrappers/sidenav'; ``` -------------------------------- ### Import Dialog Base Class Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/dialog/README.md Import the Dialog base class for type hinting or extension purposes. ```javascript import { Dialog } from '@swc-uxp-wrappers/dialog'; ``` -------------------------------- ### Import Action Group Base Class Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/action-group/README.md Import the `ActionGroup` base class for type hinting or extension purposes. ```javascript import { ActionGroup } from '@swc-uxp-wrappers/action-group'; ``` -------------------------------- ### Basic Textfield Usage Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/textfield/README.md Render a basic Spectrum Textfield component in your HTML. ```html ``` -------------------------------- ### Import Illustrated Message Base Class Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/illustrated-message/README.md Import the `IllustratedMessage` base class for type hinting or extension purposes. ```javascript import { IllustratedMessage } from '@swc-uxp-wrappers/illustrated-message'; ``` -------------------------------- ### Import Field Label Base Class Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/field-label/README.md Import the FieldLabel base class for type hinting or extension purposes. ```javascript import { FieldLabel } from '@swc-uxp-wrappers/field-label'; ``` -------------------------------- ### Import Checkbox Base Class Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/checkbox/README.md Import the Checkbox base class for type hinting or extension. ```javascript import { Checkbox } from '@swc-uxp-wrappers/checkbox'; ``` -------------------------------- ### Import Link Registration Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/link/README.md Import the side effectful registration of the '' custom element. ```javascript import '@swc-uxp-wrappers/link/sp-link.js'; ``` -------------------------------- ### Register Spectrum Meter Component Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/meter/README.md Import the side effectful registration of the custom element to make it available in UXP. ```javascript import '@swc-uxp-wrappers/meter/sp-meter.js'; ``` -------------------------------- ### Basic Usage of sp-tags Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/tags/README.md Render the Spectrum tags custom element in your HTML. ```html ``` -------------------------------- ### Basic Banner Usage Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/banner/README.md Render a basic Spectrum Banner component in your HTML. ```html ``` -------------------------------- ### Register Spectrum Menu Component Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/menu/README.md Import the side effectful registration of the custom element to make it available in your UXP application. ```javascript import '@swc-uxp-wrappers/menu/sp-menu.js'; ``` -------------------------------- ### Import Action Bar Registration Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/action-bar/README.md Import the side effectful registration of the custom element `` for use in UXP. ```javascript import '@swc-uxp-wrappers/action-bar/sp-action-bar.js'; ``` -------------------------------- ### Import Table Registration Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/table/README.md Import the side effectful registration of the '' component. ```javascript import '@swc-uxp-wrappers/table/sp-table.js'; ``` -------------------------------- ### Register Tooltip Component Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/tooltip/README.md Import the side effectful registration of the `` custom element. ```javascript import '@swc-uxp-wrappers/tooltip/sp-tooltip.js'; ``` -------------------------------- ### Basic Dialog Element Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/dialog/README.md Render a basic Spectrum Web Components dialog element in your HTML. ```html ``` -------------------------------- ### Import Divider Base Class Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/divider/README.md Import the Divider base class for type checking or extension purposes. ```javascript import { Divider } from '@swc-uxp-wrappers/divider'; ``` -------------------------------- ### Basic Checkbox Usage Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/checkbox/README.md Render a basic checkbox using the custom element. ```html ``` -------------------------------- ### Basic Popover HTML Structure Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/popover/README.md Render a basic popover element using its custom HTML tag. This is the simplest way to include a popover in your UXP interface. ```html ``` -------------------------------- ### Basic Search Element Usage Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/search/README.md Render a basic search input using the `` custom element. ```html ``` -------------------------------- ### Basic Sidenav Usage Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/sidenav/README.md Render a basic Sidenav component using its custom element tag ''. This is the simplest way to include a Sidenav in your UXP interface. ```html ``` -------------------------------- ### Import Number Field Base Class Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/number-field/README.md Import the NumberField base class for type hinting or extension purposes. ```javascript import { NumberField } from '@swc-uxp-wrappers/number-field'; ``` -------------------------------- ### Import Swatch Registration Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/swatch/README.md Import the side effectful registration of the '' custom element. This is necessary to make the swatch component available in your UXP application. ```javascript import '@swc-uxp-wrappers/swatch/sp-swatch.js'; ``` -------------------------------- ### Import Tags Base Class Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/tags/README.md Import the 'Tags' base class for type checking or extension purposes. ```javascript import { Tags } from '@swc-uxp-wrappers/tags'; ``` -------------------------------- ### Import Button Registration Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/button/README.md Import the side effectful registration of the custom element. ```javascript import '@swc-uxp-wrappers/button/sp-button.js'; ``` -------------------------------- ### Basic Button Group Usage Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/button-group/README.md Render a basic button group component in your HTML. ```html ``` -------------------------------- ### Import Field Group Base Class Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/field-group/README.md Import the `FieldGroup` base class when you need to use it as a type or for extension purposes. ```javascript import { FieldGroup } from '@swc-uxp-wrappers/field-group'; ``` -------------------------------- ### Import Dialog Registration Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/dialog/README.md Import the side effectful registration of the custom element . ```javascript import '@swc-uxp-wrappers/dialog/sp-dialog.js'; ``` -------------------------------- ### Basic Avatar Usage Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/avatar/README.md Render a basic '' element in your HTML. This will display a default avatar. ```html ``` -------------------------------- ### Basic Illustrated Message Usage Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/illustrated-message/README.md Render a basic illustrated message component in your HTML. ```html ``` -------------------------------- ### Register Action Button Element Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/action-button/README.md Import the side effectful registration of the custom element `` for use in UXP. ```javascript import '@swc-uxp-wrappers/action-button/sp-action-button.js'; ``` -------------------------------- ### Register Search Component Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/search/README.md Import the side effectful registration of `` to make the custom element available. ```javascript import '@swc-uxp-wrappers/search/sp-search.js'; ``` -------------------------------- ### Register Overlay Component Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/overlay/README.md Import the side effectful registration of the `` custom element. This ensures the overlay component is available for use in your UXP application. ```javascript import '@swc-uxp-wrappers/overlay/sp-overlay.js'; ``` -------------------------------- ### Register Banner Component Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/banner/README.md Import the side effectful registration of the custom element. ```javascript import '@swc-uxp-wrappers/banner/sp-banner.js'; ``` -------------------------------- ### Import Radio Registration Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/radio/README.md Import the side effectful registration of the custom element `` to make it available for use in your UXP application. ```javascript import '@swc-uxp-wrappers/radio/sp-radio.js'; ``` -------------------------------- ### Register Action Group Element Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/action-group/README.md Import the side effectful registration of the custom element `` to make it available in UXP. ```javascript import '@swc-uxp-wrappers/action-group/sp-action-group.js'; ``` -------------------------------- ### Import Avatar Base Class Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/avatar/README.md Import the 'Avatar' base class for type hinting or extension purposes. This allows you to leverage the Avatar class in your TypeScript or JavaScript code. ```javascript import { Avatar } from '@swc-uxp-wrappers/avatar'; ``` -------------------------------- ### Register Picker Button Element Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/picker-button/README.md Import the side effectful registration of the `` custom element. ```javascript import '@swc-uxp-wrappers/picker-button/sp-picker-button.js'; ``` -------------------------------- ### Register Switch Component Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/switch/README.md Import the side effectful registration of the `` custom element for use in UXP. ```javascript import '@swc-uxp-wrappers/switch/sp-switch.js'; ``` -------------------------------- ### Import Checkbox Registration Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/checkbox/README.md Import the side effectful registration of the custom element. ```javascript import '@swc-uxp-wrappers/checkbox/sp-checkbox.js'; ``` -------------------------------- ### Import Card Registration Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/card/README.md Import the side effectful registration of the element. ```javascript import '@swc-uxp-wrappers/card/sp-card.js'; ``` -------------------------------- ### Register Textfield Component Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/textfield/README.md Import the side effectful registration of the custom element. ```javascript import '@swc-uxp-wrappers/textfield/sp-textfield.js'; ``` -------------------------------- ### Register Spectrum Popover Element in UXP Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/popover/README.md Import the side effectful registration of the '' custom element. This makes the popover component available for use in your UXP application. ```javascript import '@swc-uxp-wrappers/popover/sp-popover.js'; ``` -------------------------------- ### Basic Field Group Usage Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/field-group/README.md Render a basic `` element in your HTML. ```html ``` -------------------------------- ### Register Custom Element Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/tags/README.md Import the side effectful registration of the '' custom element. ```javascript import '@swc-uxp-wrappers/tags/sp-tags.js'; ``` -------------------------------- ### Register Field Group Component Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/field-group/README.md Import the side effectful registration of `` to make it available in your UXP application. ```javascript import '@swc-uxp-wrappers/field-group/sp-field-group.js'; ``` -------------------------------- ### Register Button Group Component Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/button-group/README.md Import the side effectful registration of the custom element. ```javascript import '@swc-uxp-wrappers/button-group/sp-button-group.js'; ``` -------------------------------- ### Import Field Label Side Effect Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/field-label/README.md Import the side effectful registration of '' to enable its usage. ```javascript import '@swc-uxp-wrappers/field-label/sp-field-label.js'; ``` -------------------------------- ### Register Illustrated Message Component Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/illustrated-message/README.md Import the side effectful registration of the `` custom element. ```javascript import '@swc-uxp-wrappers/illustrated-message/sp-illustrated-message.js'; ``` -------------------------------- ### Import Sidenav Registration Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/sidenav/README.md Import the side effectful registration of the '' custom element. This is necessary to enable the Sidenav component in your UXP application. ```javascript import '@swc-uxp-wrappers/sidenav/sp-sidenav.js'; ``` -------------------------------- ### Import Number Field Registration Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/number-field/README.md Import the side effectful registration of the custom element. ```javascript import '@swc-uxp-wrappers/number-field/sp-number-field.js'; ``` -------------------------------- ### Register Divider Component Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/divider/README.md Import the side effectful registration of the custom element. ```javascript import '@swc-uxp-wrappers/divider/sp-divider.js'; ``` -------------------------------- ### Import Avatar Component Side Effect Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/avatar/README.md Import the side effectful registration of the '' custom element. This is necessary to use the avatar component in your UXP application. ```javascript import '@swc-uxp-wrappers/avatar/sp-avatar.js'; ``` -------------------------------- ### Basic Number Field Usage Source: https://github.com/adobe/swc-uxp-wrappers/blob/main/packages/number-field/README.md Render a basic Spectrum number field element in your HTML. ```html ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.