@htmlbricks/hb-dropdown-notifications
v0.66.27
Published
Navbar-style bell control that toggles a Bootstrap `dropdown-menu`: header row with optional “Clear all” (`clearurl`) and a default slot for notification rows, plus optional footer link “View all” (`viewurl`). `align` switches `dropdown-menu-end` for righ
Readme
hb-dropdown-notifications — dropdown-notifications
Category: overlays
Tags: overlays, menu, notifications
What it does
Navbar-style bell control that toggles a Bootstrap dropdown-menu: header row with optional “Clear all” (clearurl) and a default slot for notification rows, plus optional footer link “View all” (viewurl). align switches dropdown-menu-end for right alignment.
Custom element
hb-dropdown-notifications
Attributes (snake_case; use string values in HTML)
id— optional stringstyle— optional stringclearurl— string (URL for clear-all; empty disables)viewurl— string (URL for view-all; empty disables)align—"left"|"right"
Events
None declared on the component type.
Usage notes
Slot: title (dropdown header). Default slot holds notification row content.
Minimal HTML example
<hb-dropdown-notifications
clearurl=""
viewurl="/notifications"
align="right"
>
<span slot="title">Notifications</span>
<div class="dropdown-item">Sample notification</div>
</hb-dropdown-notifications>