LanternUI.Components.Inspector (LanternUI v0.8.1)

Copy Markdown View Source

Sticky right-rail inspector: optional section headings and label/value rows whose value may be any inline control.

<.inspector aria-label="Ticket">
  <.inspector_section title="Properties">
    <.property_row label="Repo">enventory_new</.property_row>
    <.property_row label="Status">
      <.select id="status" name="status" value="in_progress" options={@statuses} />
    </.property_row>
  </.inspector_section>
</.inspector>

Summary

Functions

inspector(assigns)

Attributes

  • class (:any) - Extra classes merged onto the rail. Defaults to nil.
  • Global attributes are accepted. Arbitrary HTML/phx-* attributes passed through.

Slots

inspector_section(assigns)

Attributes

  • title (:string) - Optional uppercase section heading. Defaults to nil.
  • class (:any) - Extra classes merged onto the section. Defaults to nil.
  • Global attributes are accepted. Arbitrary HTML/phx-* attributes passed through.

Slots

property_row(assigns)

Attributes

  • label (:string) (required) - Row label (left column).
  • class (:any) - Extra classes merged onto the row. Defaults to nil.
  • Global attributes are accepted. Arbitrary HTML/phx-* attributes passed through.

Slots

  • inner_block (required) - Value: text or any inline control.