PhoenixKit.Modules.Publishing.Components.EntityForm (phoenix_kit v1.7.43)

Copy Markdown View Source

Embeddable entity form component for publishing pages. Renders a public submission form based on entity configuration.

Usage in .phk files

<EntityForm entity_slug="contact" />

Attributes

  • entity_slug (required) - The slug/name of the entity to render form for

Summary

Functions

render(assigns)

Attributes

  • content (:string) - Defaults to nil.
  • attributes (:map) - Defaults to %{}.
  • variant (:string) - Defaults to "default".