Skip to main content
Yoummday Light Light Dark System

Dialog

<sl-dialog> | SlDialog
Since 2.0 stable

Dialogs, sometimes called “modals”, appear above the page and require the user’s immediate attention.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Close Open Dialog
<sl-dialog label="Dialog" class="dialog-overview">
  Lorem ipsum dolor sit amet, consectetur adipiscing elit.
  <sl-button slot="footer" variant="primary">Close</sl-button>
</sl-dialog>

<sl-button>Open Dialog</sl-button>

<script>
  const dialog = document.querySelector('.dialog-overview');
  const openButton = dialog.nextElementSibling;
  const closeButton = dialog.querySelector('sl-button[slot="footer"]');

  openButton.addEventListener('click', () => dialog.show());
  closeButton.addEventListener('click', () => dialog.hide());
</script>
import { useState } from 'react';
import SlButton from '@yoummday/ymmd-shoelace/dist/react/button';
import SlDialog from '@yoummday/ymmd-shoelace/dist/react/dialog';

const App = () => {
  const [open, setOpen] = useState(false);

  return (
    <>
      <SlDialog label="Dialog" open={open} onSlAfterHide={() => setOpen(false)}>
        Lorem ipsum dolor sit amet, consectetur adipiscing elit.
        <SlButton slot="footer" variant="primary" onClick={() => setOpen(false)}>
          Close
        </SlButton>
      </SlDialog>

      <SlButton onClick={() => setOpen(true)}>Open Dialog</SlButton>
    </>
  );
};

Examples

Custom Width

Use the --width custom property to set the dialog’s width.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Close Open Dialog
<sl-dialog label="Dialog" class="dialog-width" style="--width: 50vw;">
  Lorem ipsum dolor sit amet, consectetur adipiscing elit.
  <sl-button slot="footer" variant="primary">Close</sl-button>
</sl-dialog>

<sl-button>Open Dialog</sl-button>

<script>
  const dialog = document.querySelector('.dialog-width');
  const openButton = dialog.nextElementSibling;
  const closeButton = dialog.querySelector('sl-button[slot="footer"]');

  openButton.addEventListener('click', () => dialog.show());
  closeButton.addEventListener('click', () => dialog.hide());
</script>
import { useState } from 'react';
import SlButton from '@yoummday/ymmd-shoelace/dist/react/button';
import SlDialog from '@yoummday/ymmd-shoelace/dist/react/dialog';

const App = () => {
  const [open, setOpen] = useState(false);

  return (
    <>
      <SlDialog label="Dialog" open={open} style={{ '--width': '50vw' }} onSlAfterHide={() => setOpen(false)}>
        Lorem ipsum dolor sit amet, consectetur adipiscing elit.
        <SlButton slot="footer" variant="primary" onClick={() => setOpen(false)}>
          Close
        </SlButton>
      </SlDialog>

      <SlButton onClick={() => setOpen(true)}>Open Dialog</SlButton>
    </>
  );
};

Scrolling

By design, a dialog’s height will never exceed that of the viewport. As such, dialogs will not scroll with the page ensuring the header and footer are always accessible to the user.

Scroll down and give it a try! 👇

Close
Open Dialog
<sl-dialog label="Dialog" class="dialog-scrolling">
  <div style="height: 150vh; border: dashed 2px var(--sl-color-neutral-200); padding: 0 1rem;">
    <p>Scroll down and give it a try! 👇</p>
  </div>
  <sl-button slot="footer" variant="primary">Close</sl-button>
</sl-dialog>

<sl-button>Open Dialog</sl-button>

<script>
  const dialog = document.querySelector('.dialog-scrolling');
  const openButton = dialog.nextElementSibling;
  const closeButton = dialog.querySelector('sl-button[slot="footer"]');

  openButton.addEventListener('click', () => dialog.show());
  closeButton.addEventListener('click', () => dialog.hide());
</script>
import { useState } from 'react';
import SlButton from '@yoummday/ymmd-shoelace/dist/react/button';
import SlDialog from '@yoummday/ymmd-shoelace/dist/react/dialog';

const App = () => {
  const [open, setOpen] = useState(false);

  return (
    <>
      <SlDialog label="Dialog" open={open} onSlAfterHide={() => setOpen(false)}>
        <div
          style={{
            height: '150vh',
            border: 'dashed 2px var(--sl-color-neutral-200)',
            padding: '0 1rem'
          }}
        >
          <p>Scroll down and give it a try! 👇</p>
        </div>

        <SlButton slot="footer" variant="primary" onClick={() => setOpen(false)}>
          Close
        </SlButton>
      </SlDialog>

      <SlButton onClick={() => setOpen(true)}>Open Dialog</SlButton>
    </>
  );
};

Header Actions

The header shows a functional close button by default. You can use the header-actions slot to add additional icon buttons if needed.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Close Open Dialog
<sl-dialog label="Dialog" class="dialog-header-actions">
  <sl-icon-button class="new-window"  library="shoelace-default" slot="header-actions" name="box-arrow-up-right"></sl-icon-button>
  Lorem ipsum dolor sit amet, consectetur adipiscing elit.
  <sl-button slot="footer" variant="primary">Close</sl-button>
</sl-dialog>

<sl-button>Open Dialog</sl-button>

<script>
  const dialog = document.querySelector('.dialog-header-actions');
  const openButton = dialog.nextElementSibling;
  const closeButton = dialog.querySelector('sl-button[slot="footer"]');
  const newWindowButton = dialog.querySelector('.new-window');

  openButton.addEventListener('click', () => dialog.show());
  closeButton.addEventListener('click', () => dialog.hide());
  newWindowButton.addEventListener('click', () => window.open(location.href));
</script>
import { useState } from 'react';
import SlButton from '@yoummday/ymmd-shoelace/dist/react/button';
import SlDialog from '@yoummday/ymmd-shoelace/dist/react/dialog';
import SlIconButton from '@yoummday/ymmd-shoelace/dist/react/icon-button';

const App = () => {
  const [open, setOpen] = useState(false);

  return (
    <>
      <SlDialog label="Dialog" open={open} onSlAfterHide={() => setOpen(false)}>
        <SlIconButton
          class="new-window"
          slot="header-actions"
          name="box-arrow-up-right"
          onClick={() => window.open(location.href)}
        />
        Lorem ipsum dolor sit amet, consectetur adipiscing elit.
        <SlButton slot="footer" variant="primary" onClick={() => setOpen(false)}>
          Close
        </SlButton>
      </SlDialog>

      <SlButton onClick={() => setOpen(true)}>Open Dialog</SlButton>
    </>
  );
};

Closing the Dialog on click outside

By default, dialogs will NOT close when the user clicks the overlay. In most cases, the default behavior is the best behavior in terms of UX. However, there are situations where this may be undesirable.

To close the dialog in such cases, you can use the sl-request-close event. When called, just call the dialog’s hide() method.

You can use event.detail.source to determine what triggered the request. This example enables the dialog’s close automatism when the overlay is clicked, while also allows the close button or Escape to dismiss it.

This dialog will not close when you click on the overlay. Close Open Dialog
<sl-dialog label="Dialog" class="dialog-enable-close">
  This dialog will not close when you click on the overlay.
  <sl-button slot="footer" variant="primary">Close</sl-button>
</sl-dialog>

<sl-button>Open Dialog</sl-button>

<script>
  const dialog = document.querySelector('.dialog-enable-close');
  const openButton = dialog.nextElementSibling;
  const closeButton = dialog.querySelector('sl-button[slot="footer"]');

  openButton.addEventListener('click', () => dialog.show());
  closeButton.addEventListener('click', () => dialog.hide());

  // Prevent the dialog from closing when the user clicks on the overlay
  dialog.addEventListener('sl-request-close', event => {
    if (event.detail.source === 'overlay') {
      // default: event.preventDefault();
			dialog.hide();
    }
  });
</script>
import { useState } from 'react';
import SlButton from '@yoummday/ymmd-shoelace/dist/react/button';
import SlDialog from '@yoummday/ymmd-shoelace/dist/react/dialog';

const App = () => {
  const [open, setOpen] = useState(false);

  // Prevent the dialog from closing when the user clicks on the overlay
  function handleRequestClose(event) {
    if (event.detail.source === 'overlay') {
      event.preventDefault();
    }
  }

  return (
    <>
      <SlDialog label="Dialog" open={open} onSlRequestClose={handleRequestClose} onSlAfterHide={() => setOpen(false)}>
        This dialog will not close when you click on the overlay.
        <SlButton slot="footer" variant="primary" onClick={() => setOpen(false)}>
          Close
        </SlButton>
      </SlDialog>

      <SlButton onClick={() => setOpen(true)}>Open Dialog</SlButton>
    </>
  );
};

Customizing Initial Focus

By default, the dialog’s panel will gain focus when opened. This allows a subsequent tab press to focus on the first tabbable element in the dialog. If you want a different element to have focus, add the autofocus attribute to it as shown below.

Close Open Dialog
<sl-dialog label="Dialog" class="dialog-focus">
  <sl-input autofocus placeholder="I will have focus when the dialog is opened"></sl-input>
  <sl-button slot="footer" variant="primary">Close</sl-button>
</sl-dialog>

<sl-button>Open Dialog</sl-button>

<script>
  const dialog = document.querySelector('.dialog-focus');
  const input = dialog.querySelector('sl-input');
  const openButton = dialog.nextElementSibling;
  const closeButton = dialog.querySelector('sl-button[slot="footer"]');

  openButton.addEventListener('click', () => dialog.show());
  closeButton.addEventListener('click', () => dialog.hide());
</script>
import { useState } from 'react';
import SlButton from '@yoummday/ymmd-shoelace/dist/react/button';
import SlDialog from '@yoummday/ymmd-shoelace/dist/react/dialog';
import SlInput from '@yoummday/ymmd-shoelace/dist/react/input';

const App = () => {
  const [open, setOpen] = useState(false);

  return (
    <>
      <SlDialog label="Dialog" open={open} onSlAfterHide={() => setOpen(false)}>
        <SlInput autofocus placeholder="I will have focus when the dialog is opened" />
        <SlButton slot="footer" variant="primary" onClick={() => setOpen(false)}>
          Close
        </SlButton>
      </SlDialog>

      <SlButton onClick={() => setOpen(true)}>Open Dialog</SlButton>
    </>
  );
};

All Variants

Use the variant attribute/property to set the dialog’s variant. Available values: primary, success, warning, danger. Omit variant for a neutral dialog.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Close Lorem ipsum dolor sit amet, consectetur adipiscing elit. Close Lorem ipsum dolor sit amet, consectetur adipiscing elit. Close Lorem ipsum dolor sit amet, consectetur adipiscing elit. Close Lorem ipsum dolor sit amet, consectetur adipiscing elit. Close
Neutral Primary Success Warning Danger
<div class="dialog-variants">
  <sl-dialog label="Neutral Dialog" class="dialog-neutral">
    Lorem ipsum dolor sit amet, consectetur adipiscing elit.
    <sl-button slot="footer" variant="primary">Close</sl-button>
  </sl-dialog>

  <sl-dialog label="Primary Dialog" class="dialog-primary" variant="primary">
    Lorem ipsum dolor sit amet, consectetur adipiscing elit.
    <sl-button slot="footer" variant="primary">Close</sl-button>
  </sl-dialog>

  <sl-dialog label="Success Dialog" class="dialog-success" variant="success">
    Lorem ipsum dolor sit amet, consectetur adipiscing elit.
    <sl-button slot="footer" variant="primary">Close</sl-button>
  </sl-dialog>

  <sl-dialog label="Warning Dialog" class="dialog-warning" variant="warning">
    Lorem ipsum dolor sit amet, consectetur adipiscing elit.
    <sl-button slot="footer" variant="primary">Close</sl-button>
  </sl-dialog>

  <sl-dialog label="Danger Dialog" class="dialog-danger" variant="danger">
    Lorem ipsum dolor sit amet, consectetur adipiscing elit.
    <sl-button slot="footer" variant="primary">Close</sl-button>
  </sl-dialog>
</div>

<div class="dialog-variants-buttons">
  <sl-button>Neutral</sl-button>
  <sl-button>Primary</sl-button>
  <sl-button>Success</sl-button>
  <sl-button>Warning</sl-button>
  <sl-button>Danger</sl-button>
</div>

<script>
  const neutralDialog = document.querySelector('.dialog-neutral');
  const primaryDialog = document.querySelector('.dialog-primary');
  const successDialog = document.querySelector('.dialog-success');
  const warningDialog = document.querySelector('.dialog-warning');
  const dangerDialog = document.querySelector('.dialog-danger');

  const [openNeutralBtn, openPrimaryBtn, openSuccessBtn, openWarningBtn, openDangerBtn] = document.querySelectorAll(
    '.dialog-variants-buttons sl-button'
  );

  const closeNeutralBtn = neutralDialog.querySelector('sl-button[slot="footer"]');
  const closePrimaryBtn = primaryDialog.querySelector('sl-button[slot="footer"]');
  const closeSuccessBtn = successDialog.querySelector('sl-button[slot="footer"]');
  const closeWarningBtn = warningDialog.querySelector('sl-button[slot="footer"]');
  const closeDangerBtn = dangerDialog.querySelector('sl-button[slot="footer"]');

  openNeutralBtn.addEventListener('click', () => neutralDialog.show());
  openPrimaryBtn.addEventListener('click', () => primaryDialog.show());
	openSuccessBtn.addEventListener('click', () => successDialog.show());
  openWarningBtn.addEventListener('click', () => warningDialog.show());
  openDangerBtn.addEventListener('click', () => dangerDialog.show());

  closeNeutralBtn.addEventListener('click', () => neutralDialog.hide());
  closePrimaryBtn.addEventListener('click', () => primaryDialog.hide());
  closeSuccessBtn.addEventListener('click', () => successDialog.hide());
  closeWarningBtn.addEventListener('click', () => warningDialog.hide());
  closeDangerBtn.addEventListener('click', () => dangerDialog.hide());
</script>
import { useState } from 'react';
import SlButton from '@yoummday/ymmd-shoelace/dist/react/button';
import SlDialog from '@yoummday/ymmd-shoelace/dist/react/dialog';

const App = () => {
  const [openNeutral, setOpenNeutral] = useState(false);
  const [openPrimary, setOpenPrimary] = useState(false);
  const [openSuccess, setOpenSuccess] = useState(false);
  const [openWarning, setOpenWarning] = useState(false);
  const [openDanger, setOpenDanger] = useState(false);

  return (
    <>
      <SlDialog label="Neutral Dialog" open={openNeutral} onSlAfterHide={() => setOpenNeutral(false)}>
        Lorem ipsum dolor sit amet, consectetur adipiscing elit.
        <SlButton slot="footer" variant="primary" onClick={() => setOpenNeutral(false)}>
          Close
        </SlButton>
      </SlDialog>

      <SlDialog label="Primary Dialog" variant="primary" open={openPrimary} onSlAfterHide={() => setOpenPrimary(false)}>
        Lorem ipsum dolor sit amet, consectetur adipiscing elit.
        <SlButton slot="footer" variant="primary" onClick={() => setOpenPrimary(false)}>
          Close
        </SlButton>
      </SlDialog>

      <SlDialog label="Success Dialog" variant="success" open={openSuccess} onSlAfterHide={() => setOpenSuccess(false)}>
        Lorem ipsum dolor sit amet, consectetur adipiscing elit.
        <SlButton slot="footer" variant="primary" onClick={() => setOpenSuccess(false)}>
          Close
        </SlButton>
      </SlDialog>

      <SlDialog label="Warning Dialog" variant="warning" open={openWarning} onSlAfterHide={() => setOpenWarning(false)}>
        Lorem ipsum dolor sit amet, consectetur adipiscing elit.
        <SlButton slot="footer" variant="primary" onClick={() => setOpenWarning(false)}>
          Close
        </SlButton>
      </SlDialog>

      <SlDialog label="Danger Dialog" variant="danger" open={openDanger} onSlAfterHide={() => setOpenDanger(false)}>
        Lorem ipsum dolor sit amet, consectetur adipiscing elit.
        <SlButton slot="footer" variant="primary" onClick={() => setOpenDanger(false)}>
          Close
        </SlButton>
      </SlDialog>

      <div style={'display': 'flex', 'gap': '0.5rem', 'flexWrap': 'wrap'} >
        <SlButton onClick={() => setOpenNeutral(true)}>Neutral</SlButton>
        <SlButton onClick={() => setOpenPrimary(true)}>Primary</SlButton>
        <SlButton onClick={() => setOpenSuccess(true)}>Success</SlButton>
        <SlButton onClick={() => setOpenWarning(true)}>Warning</SlButton>
        <SlButton onClick={() => setOpenDanger(true)}>Danger</SlButton>
      </div>
    </>
  );
};

All Variants with custom labels

Use the slot attribute/property to set a custom label to the dialog. Remove the label attribute and build your own DOM for the slot.

My slotted label
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Close
My slotted label
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Close
My slotted label
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Close
My slotted label
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Close
My slotted label
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Close
Neutral Primary Success Warning Danger
<div class="label-variants">
  <sl-dialog label="Neutral Dialog" class="dialog-neutral">
		<div slot="label">My slotted label</div>
		Lorem ipsum dolor sit amet, consectetur adipiscing elit.
    <sl-button slot="footer" variant="primary">Close</sl-button>
  </sl-dialog>

	<sl-dialog class="dialog-primary"  label="huhu"variant="primary">
		<div slot="label">My slotted label</div>
    Lorem ipsum dolor sit amet, consectetur adipiscing elit.
    <sl-button slot="footer" variant="primary">Close</sl-button>
  </sl-dialog>

  <sl-dialog class="dialog-success" variant="success">
		<div slot="label">My slotted label</div>
    Lorem ipsum dolor sit amet, consectetur adipiscing elit.
    <sl-button slot="footer" variant="primary">Close</sl-button>
  </sl-dialog>

  <sl-dialog class="dialog-warning" variant="warning">
		<div slot="label">My slotted label</div>
    Lorem ipsum dolor sit amet, consectetur adipiscing elit.
    <sl-button slot="footer" variant="primary">Close</sl-button>
  </sl-dialog>

  <sl-dialog class="dialog-danger" variant="danger">
		<div slot="label">My slotted label</div>
    Lorem ipsum dolor sit amet, consectetur adipiscing elit.
    <sl-button slot="footer" variant="primary">Close</sl-button>
  </sl-dialog>
</div>

<div class="label-variants-buttons">
  <sl-button>Neutral</sl-button>
  <sl-button>Primary</sl-button>
  <sl-button>Success</sl-button>
  <sl-button>Warning</sl-button>
  <sl-button>Danger</sl-button>
</div>

<script>
  const neutralDialog = document.querySelector('.label-variants .dialog-neutral');
  const primaryDialog = document.querySelector('.label-variants .dialog-primary');
  const successDialog = document.querySelector('.label-variants .dialog-success');
  const warningDialog = document.querySelector('.label-variants .dialog-warning');
  const dangerDialog = document.querySelector('.label-variants .dialog-danger');

  const [openNeutralBtn, openPrimaryBtn, openSuccessBtn, openWarningBtn, openDangerBtn] = document.querySelectorAll(
    '.label-variants-buttons sl-button'
  );

  const closeNeutralBtn = neutralDialog.querySelector('sl-button[slot="footer"]');
  const closePrimaryBtn = primaryDialog.querySelector('sl-button[slot="footer"]');
  const closeSuccessBtn = successDialog.querySelector('sl-button[slot="footer"]');
  const closeWarningBtn = warningDialog.querySelector('sl-button[slot="footer"]');
  const closeDangerBtn = dangerDialog.querySelector('sl-button[slot="footer"]');

  openNeutralBtn.addEventListener('click', () => neutralDialog.show());
  openPrimaryBtn.addEventListener('click', () => primaryDialog.show());
  openSuccessBtn.addEventListener('click', () => successDialog.show());
  openWarningBtn.addEventListener('click', () => warningDialog.show());
  openDangerBtn.addEventListener('click', () => dangerDialog.show());

  closeNeutralBtn.addEventListener('click', () => neutralDialog.hide());
  closePrimaryBtn.addEventListener('click', () => primaryDialog.hide());
  closeSuccessBtn.addEventListener('click', () => successDialog.hide());
  closeWarningBtn.addEventListener('click', () => warningDialog.hide());
  closeDangerBtn.addEventListener('click', () => dangerDialog.hide());
</script>

Importing

If you’re using the autoloader or the traditional loader, you can ignore this section. Otherwise, feel free to use any of the following snippets to cherry pick this component.

Script Import Bundler React

To import this component from the CDN using a script tag:

<script type="module" src="https://v2-54-0.yoummday-theme.pages.dev/components/dialog/dialog.js"></script>

To import this component from the CDN using a JavaScript import:

import 'https://v2-54-0.yoummday-theme.pages.dev/components/dialog/dialog.js';

To import this component using a bundler:

import '@yoummday/ymmd-shoelace/dist/components/dialog/dialog.js';

To import this component as a React component:

import SlDialog from '@yoummday/ymmd-shoelace/dist/react/dialog';

Slots

Name Description
(default) The dialog’s main content.
label The dialog’s label. Alternatively, you can use the label attribute.
header-actions Optional actions to add to the header. Works best with <sl-icon-button>.
footer The dialog’s footer, usually one or more buttons representing various options.

Learn more about using slots.

Properties

Name Description Reflects Type Default
variant The badge’s theme variant. Variant ''
modal Exposes the internal modal utility that controls focus trapping. To temporarily disable focus trapping and allow third-party modals spawned from an active Shoelace modal, call modal.activateExternal() when the third-party modal opens. Upon closing, call modal.deactivateExternal() to restore Shoelace’s focus trapping. - new Modal(this)
open Indicates whether or not the dialog is open. You can toggle this attribute to show and hide the dialog, or you can use the show() and hide() methods and this attribute will reflect the dialog’s open state. boolean false
label The dialog’s label as displayed in the header. You should always include a relevant label even when using no-header, as it is required for proper accessibility. If you need to display HTML, use the label slot instead. string ''
noHeader
no-header
Disables the header. This will also remove the default close button, so please ensure you provide an easy, accessible way for users to dismiss the dialog. boolean false
updateComplete A read-only promise that resolves when the component has finished updating.

Learn more about attributes and properties.

Events

Name React Event Description Event Detail
sl-show onSlShow Emitted when the dialog opens. -
sl-after-show onSlAfterShow Emitted after the dialog opens and all animations are complete. -
sl-hide onSlHide Emitted when the dialog closes. -
sl-after-hide onSlAfterHide Emitted after the dialog closes and all animations are complete. -
sl-initial-focus onSlInitialFocus Emitted when the dialog opens and is ready to receive focus. Calling event.preventDefault() will prevent focusing and allow you to set it on a different element, such as an input. -
sl-request-close onSlRequestClose Emitted when the user attempts to close the dialog by clicking the close button, clicking the overlay, or pressing escape. Calling event.preventDefault() will keep the dialog open. Avoid using this unless closing the dialog will result in destructive behavior such as data loss. { source: 'close-button' | 'keyboard' | 'overlay' }

Learn more about events.

Methods

Name Description Arguments
show() Shows the dialog. -
hide() Hides the dialog -

Learn more about methods.

Custom Properties

Name Description Default
--width The preferred width of the dialog. Note that the dialog will shrink to accommodate smaller screens.
--header-spacing The amount of padding to use for the header.
--body-spacing The amount of padding to use for the body.
--footer-spacing The amount of padding to use for the footer.

Learn more about customizing CSS custom properties.

Parts

Name Description
base The component’s base wrapper.
overlay The overlay that covers the screen behind the dialog.
panel The dialog’s panel (where the dialog and its content are rendered).
header The dialog’s header. This element wraps the title and header actions.
header-actions Optional actions to add to the header. Works best with <sl-icon-button>.
title The dialog’s title.
close-button The close button, an <sl-icon-button>.
close-button__base The close button’s exported base part.
body The dialog’s body.
footer The dialog’s footer.

Learn more about customizing CSS parts.

Animations

Name Description
dialog.show The animation to use when showing the dialog.
dialog.hide The animation to use when hiding the dialog.
dialog.denyClose The animation to use when a request to close the dialog is denied.
dialog.overlay.show The animation to use when showing the dialog’s overlay.
dialog.overlay.hide The animation to use when hiding the dialog’s overlay.

Learn more about customizing animations.

Dependencies

This component automatically imports the following dependencies.

  • <sl-icon>
  • <sl-icon-button>