Components
Popover
hlm-popover wraps a button[hlmPopoverTrigger] and an hlm-popover-content declared with *hlmPopoverPortal. Click the trigger to open it. Escape or a click outside closes it.
<hlm-popover>
<button hlmBtn hlmPopoverTrigger variant="outline">Open popover</button>
<hlm-popover-content *hlmPopoverPortal="let ctx" class="w-72">
<div hlmPopoverHeader>
<div hlmPopoverTitle>Dimensions</div>
<p hlmPopoverDescription>Set the dimensions for the layer.</p>
</div>
<div class="flex flex-col gap-1.5 pt-3">
<label hlmLabel for="popover-width">Width</label>
<input hlmInput id="popover-width" value="100%" />
</div>
</hlm-popover-content>
</hlm-popover>hlm-popover takes align, sideOffset, state and closeOnOutsidePointerEvents, and emits stateChanged and closed.
The popover overlay gets role="dialog" from the brain popover, and helm has no input for an accessible name on it. In your own app, check that against your accessibility requirements.