Hexpunk
InstallConceptsElementsProsehp-cellhp-codehp-copyhp-hexhp-latexhp-visually-hiddenhp-buttonhp-checkboxhp-formhp-labelhp-radiohp-selecthp-sliderhp-togglehp-toggle-grouphp-badgehp-taghp-progresshp-spinnerhp-backgroundhp-clusterhp-collapsiblehp-demohp-gridhp-scroll-areahp-separatorhp-sidebarhp-toolbarhp-avatarhp-iconhp-pixelhp-linkhp-menubarhp-navigation-menuhp-tabshp-alert-dialoghp-context-menuhp-dialoghp-dropdown-menuhp-hover-cardhp-popoverhp-tooltiphp-bannerhp-toasthp-tetherhp-module-handlehp-unfold-listhp-unfold-overlayhp-unfold-pagehp-bondhp-link-nodePaletteAnimationsReleases

hp-bond

Small green hex on a shared edge. Visible while forming, fades to a hairline when settled.

Examples API Intent Changelog <body> <!-- forming — full hex visible --> <hp-bond></hp-bond> <!-- settled — collapses to a hairline on the shared edge --> <hp-bond state="settled"></hp-bond> </body>

Install

bun add @hexpunk/core lit
import "@hexpunk/core";

Properties

Property Attribute Type Default Description
state state HpBondState "forming" `forming` (default, full visibility) or `settled` (hairline).

When to use

Let <hp-grid> render bonds for you — it fires hp-grid-bond when two adjacent atoms become axial neighbours after a drop, and the bond renders in the shared edge automatically. Author <hp-bond> directly only when you're building a custom molecule layout and need to mark a fixed edge as bonded (e.g., a `` pair). Use <hp-bond> as a generic decoration — it's specifically the edge-bond indicator, and overusing it dilutes the bonding metaphor.

States

state="forming" (default) — the bond is being created right now, visible as a 12px green hex on the shared edge. state="settled" — the bond is stable; collapses opacity + scaleY so it reads as a 1px hairline on the shared edge, present but quiet.

No per-component entries in CHANGELOG.md yet.

esc