View Source PhoenixStorybook.Rendering.CodeRenderer (phoenix_storybook v0.7.1)

Responsible for rendering your components code snippet, for a given PhoenixStorybook.Variation.

Uses the Makeup libray for syntax highlighting.

Summary

Functions

Renders a component code snippet from a RenderingContext. Returns a Phoenix.LiveView.Rendered.

Renders source of a component story. Returns a rendered HEEx template.

Functions

Renders a component code snippet from a RenderingContext. Returns a Phoenix.LiveView.Rendered.

Link to this function

render(fun_or_mod, context)

View Source
Link to this function

render_component_source(story)

View Source

Renders source of a component story. Returns a rendered HEEx template.

Link to this function

render_source(source, assigns \\ %{__changed__: %{}})

View Source