LanternUI.Components.Inspector (LanternUI v0.8.2)

Copy Markdown View Source

Sticky right-rail inspector: optional section headings and a dense description_list.

<.inspector aria-label="Ticket">
  <.inspector_section title="Properties">
    <.description_list layout="dense">
      <:item label="Repo">enventory_new</:item>
      <:item label="Status">
        <.select id="status" name="status" value="in_progress" options={@statuses} />
      </:item>
    </.description_list>
  </.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

  • inner_block (required) - Section body, usually a dense description_list.

property_row(assigns)

This function is deprecated. Use description_list/1 with layout="dense" and <:item>. Removed in 0.9.0..

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.