Rendro.Component (Rendro v1.0.0) (stable)

Copy Markdown View Source

Component-based layout pattern for reusable PDF UI parts.

Summary

Functions

Creates a standard Rendro.Block containing a Rendro.Image. Requires at least one constraint: :width, :height, or :fit.

Renders a component by calling its render/1 function.

Functions

image(logical_name, opts \\ [])

@spec image(
  atom(),
  keyword()
) :: Rendro.Block.t()

Creates a standard Rendro.Block containing a Rendro.Image. Requires at least one constraint: :width, :height, or :fit.

render_component(module, assigns \\ [])

@spec render_component(
  module(),
  keyword()
) :: term()

Renders a component by calling its render/1 function.