Source code
src/showcase/pages/components/popover.html
This file is included in this documentation build. It is displayed as code and is not executed.
<!--
Demonstrate the popovers component on its own lazy route.
@author Laurent Declercq l.declercq@agon-innovation.ch
@version 20260921
-->
<section x-data="componentCatalog" class="component-library">
<include
src="partials/components/page-header.html"
locals='{"title":"componentPopover"}'
></include>
<div class="catalog-grid">
<article class="card catalog-overflow">
<header class="card-header"><h2 x-text="$t('componentPopover')"></h2></header>
<div class="card-body">
<div
class="dropdown"
x-data="uiDropdown"
x-id="['popover']"
@click.outside="open = false"
@keydown.escape.stop="close"
>
<button
class="btn btn-secondary"
x-ref="trigger"
@click="toggle"
:aria-expanded="open"
:aria-controls="$id('popover')"
x-text="$t('galleryPopover')"
></button>
<div class="ui-popover" :id="$id('popover')" x-show="open" x-cloak>
<strong x-text="$t('galleryPanelReuse')"></strong>
<p class="mt-2 mb-0" x-text="$t('galleryPanelReuseBody')"></p>
</div>
</div>
</div>
</article>
</div>
</section>