Shadix.Website.Components.CodeGen (shadix v0.0.1)

Copy Markdown View Source

Builds the HEEx source string shown in the configurator's live code block from the current prop values. Pure string-building — no rendering, no eval. Emits only props that differ from their default (Mantine-style minimal snippets).

Summary

Functions

snippet(tag, props, defaults, slot)

@spec snippet(String.t(), map(), map(), String.t()) :: String.t()