Hecr::Components
Transport-free built-in components, modeled on Phoenix.Component's
framework-independent subset. include Hecr::Components (or call them
remotely as <Hecr::Components.link>... remote tags use dots:
alias the module, e.g. alias UI = Hecr::Components then <UI.link>).
Constants
Instance methods
<.dynamic_tag tag_name={name} class="x">...</.dynamic_tag> — a tag
whose name is decided at runtime. The name is validated (HEEx raises
for unsafe names too).
Body-less variant renders self-closing, like Phoenix's dynamic_tag.
Renders the default slot for each element, with the :separator slot
between consecutive elements:
<.intersperse enumerable={items} :let={item}> <:separator> | </:separator> {item} </.intersperse>
<.link href="/about">About</.link> — a plain anchor. Without href
renders <a href="#"> like Phoenix's <.link>.