View Source KinoComponent (kino_component v0.2.0)
A kino for rendering a Phoenix function component.
Example
import Phoenix.Component, only: [link: 1, sigil_H: 2]
assigns = %{text: "I'm a link!"}
~H"""
<.link><%= @text %></.link>
"""
|> KinoComponent.new()
Summary
Functions
Creates a new kino displaying the given HEEx template.
Renders an HEEx template and returns the resulting HTML as a string.
Functions
Creates a new kino displaying the given HEEx template.
Renders an HEEx template and returns the resulting HTML as a string.