Menu display Share can be turned into a menu and used in a popover. Demo

Share this page

  • Share via X
  • Share via LinkedIn
  • Copying... Copied!
  • Twig
    {% set popover_trigger %}
      {% include '@bolt-elements-button/button.twig' with {
        content: 'Share menu',
        attributes: {
          type: 'button'
        }
      } only %}
    {% endset %}
    {% set popover_content %}
      {% include '@bolt-components-share/share.twig' with {
        display: 'menu',
        sources: var_foo,
        copy_to_clipboard: var_bar,
      } only %}
    {% endset %}
    {% include '@bolt-components-popover/popover.twig' with {
      trigger: popover_trigger,
      content: popover_content,
      spacing: 'none',
    } only %}
    HTML
    Not available in plain HTML. Please use Twig.