# `BB.TUI.Panels.EventDetail`
[🔗](https://github.com/mcass19/bb_tui/blob/v0.3.0/lib/bb/tui/panels/event_detail.ex#L1)

Event detail popup — overlay showing the full payload of the selected
event as a syntax-highlighted Elixir term.

Renders the message payload via `inspect(payload, pretty: true)` inside
an `ExRatatui.Widgets.CodeBlock` so operators get real Elixir
highlighting (atoms, structs, numerics) instead of the previous
hand-rendered tree. The popup's block title carries the one-line
summary built by `BB.TUI.Panels.Events.format_event/1`.

Pure function — takes an event tuple, returns a Popup widget struct.

# `render`

```elixir
@spec render({DateTime.t(), list(), term()}) :: struct()
```

Renders the event detail popup for the given event.

## Examples

    iex> event = {~U[2026-01-15 18:23:12.000Z], [:sensor, :sim], %{payload: %{names: [:a], positions: [1.0]}}}
    iex> %ExRatatui.Widgets.Popup{content: %ExRatatui.Widgets.CodeBlock{language: "elixir"}} =
    ...>   BB.TUI.Panels.EventDetail.render(event)

---

*Consult [api-reference.md](api-reference.md) for complete listing*
