Name Description Size Coverage
delete-widget-dialog.css 264 -
delete-widget-dialog.js 647 100 %
delete-widget-dialog.xhtml 1710 -
kit-sparkle-ai.svg 16767 -
moz-widget-header.css 1384 -
moz-widget-header.mjs The header of a `moz-widget`, placed in its `header` slot. @property {string} title - The heading text. @property {string} menuLabel - The accessible name of the menu button. Defaults to "More options". @property {string} menuId - The id of the `panel-list` the menu button opens when the `menu` slot is empty. Set by `moz-widget` from its `menu` slot. @slot leading - Content before the heading, such as a back button or badge. @slot trailing - Content at the end of the header. @slot menu - A `panel-list`. @csspart heading - The heading element. 3134 100 %
moz-widget.css 2513 -
moz-widget.mjs Hosts a self-contained, interactive widget for brief interactions. It clips embedded content to the bounds set by the `size` attribute. If `src` is set, the widget content is loaded in a `<browser>` child in chrome documents and an `<iframe>` in content documents. Otherwise the default slot is used. In its error state it draws the error slot over the content and fires `widget-error`. A ready widget fires `widget-ready`, whether it recovered or has just loaded. A host should always slot error content, or a failing widget leaves an empty card. An `<iframe>` that fails to load is an error, and one that loads is ready if `readyOnLoad` is set. Otherwise its host calls `reportError()` and `reportReady()` when appropriate. A `<browser>` widget cannot report for itself, because it is a top-level browsing context, so a chrome host calls both. `reportError(reason)` passes the reason on as `widget-error`'s `detail.reason`. @property {string} widgetId - The widget's registered ID. @property {string} title - The widget's accessible name, taken off the host element. @property {string} size - `small`, `medium`, or `large`. Defaults to `large`. @property {boolean} padded - Insets the header and content. @property {string} menuLabel - The accessible name of the menu button drawn without a header. Defaults to "More options". @property {string} src - A widget document URL. @property {boolean} readyOnLoad - Whether an iframe load reports ready. Defaults to false; attribute `ready-on-load`. @property {string} remoteType - The remote type a `<browser>` frame loads in. @property {number} browsingContextGroupId - The browsing context group a `<browser>` frame's initial load joins. @property {boolean} error - Whether the widget failed. Covers the content with the error content. @property {boolean} collapsed - Whether the widget draws only its header and menu button. Removes the content and the frame. @slot header - A `moz-widget-header` shown above the content. @slot menu - A `panel-list`, opened by the header's menu button, or by a menu button over the content without a header. @slot default - Widget content used when `src` is not set. @slot error - Error content shown over the widget content while `error` is set. 12938 99 %
moz-widget.stories.md 7792 -
moz-widget.stories.mjs 6127 -
sidebar-widget-studio-page.css 325 -
sidebar-widget-studio.css A CSS border ties dash length to border width, so an SVG rect draws the long, thin dashes. 5440 -
sidebar-widget-studio.html 1749 -
sidebar-widget-studio.mjs The widgets sidebar panel. 17671 98 %
widget-composer.css These pills are similar to the Smart Window prompt pills in smartwindow-prompts.css, with a few differences: the text color and padding come from moz-button, there is no hover, focus or active gradient, and forced colors get plain buttons. Compare the two if they are made reusable. 7632 -
widget-composer.mjs A prompt for creating widgets. @property {string} value - The text of the prompt. @property {boolean} submitDisabled - Whether submitting the prompt is disabled. @property {?{id: string, name: string}} widget - The widget the prompt updates, shown as a removable chip. @property {boolean} edited - Whether the user typed the prompt or picked an example. 7280 98 %
widget-placeholder.css stylelint-disable-next-line stylelint-plugin-mozilla/use-design-tokens 3135 -
widget-placeholder.mjs Shows the prompt during widget creation and an error message on failure. Button sends `WidgetPlaceholder:Edit` to reopen the composer with the prompt. @property {string} prompt - The widget creation prompt. @property {?string} error - An error code or `null` while creating the widget. @property {string} heading - What went wrong, set by Fluent from the error's message. @property {string} message - What to do next, set by Fluent from the error's message. 5246 98 %