View Source Moon.Helpers.MoonRender (Moon v2.89.1)

Functions for rendering Moon (or Surface, either LiveView) components in HEEX/SLIM/... (not Surface) templates

Summary

Functions

A function for rendering Surface components inside non-surface templates usage: <.moon module="Button">hit me!</.moon> Please note that only limited functional is supported, e.g. context get & named slots are out of scope, sorry.

Used for rendering stateless Surface componet

Used for rendering live (stateful) Surface component

Functions

A function for rendering Surface components inside non-surface templates usage: <.moon module="Button">hit me!</.moon> Please note that only limited functional is supported, e.g. context get & named slots are out of scope, sorry.

Link to this function

surface_component(props)

View Source
Link to this function

surface_component(module, props)

View Source

Used for rendering stateless Surface componet

Link to this function

surface_live_component(props)

View Source

Used for rendering live (stateful) Surface component

Link to this function

surface_live_component(module, props)

View Source