View Source LiveInspect.Inspector (live_inspect v0.1.1)

The LiveComponent to inspect values directly on the page.

Typically, the LiveInspect.live_inspect/1 convenience helper should be used instead of directly calling this component.

example

Example

<.live_component
  module={LiveInspect.Inspector}
  id="live-inspect"
  value={%{my_assign: @my_assign, my_other_assign: @my_other_assign}}
/>

attributes

Attributes

  • :id - required
  • :value - required; any term to inspect
  • :theme - optional; the theme module; defaults to the configured theme