Athanor.Components.EditorFormShell (Athanor v0.1.0-beta.1)

Copy Markdown View Source

Tabs wrapper used by every Athanor primitive's editor form LC. Renders a two-tab UI: "Component" (the component-specific form, supplied via the :component slot) and "Formatting" (the shared formatting controls).

Usage from a LiveComponent's render/1:

~H"""
<Athanor.Components.EditorFormShell.shell
  active_tab={@active_tab}
  myself={@myself}
  formatting_form={@formatting_form}>
  <:component>
    <!-- component-specific form here -->
  </:component>
</Athanor.Components.EditorFormShell.shell>
"""

Summary

Functions

shell(assigns)

Attributes

  • active_tab (:string) - Defaults to "component".
  • myself (:any) (required)
  • formatting_form (:any) (required)
  • open_sections (:any) (required)
  • show_formatting (:boolean) - When false, omits the Formatting tab + tab strip entirely. Used for forms that don't represent a renderable node (e.g. page-level settings). Defaults to true.

Slots

  • component (required)