BeamConsoleWeb.Components.ShellComponents (beam_console v0.5.0)

Copy Markdown View Source

Renders the BeamConsole header, navigation, and browser-owned theme controls.

Summary

Functions

Renders the dashboard header with tabs, recording controls, refresh, and theme selection.

Renders one option in the system/light/dark theme control.

Functions

header(assigns)

@spec header(map()) :: Phoenix.LiveView.Rendered.t()

Renders the dashboard header with tabs, recording controls, refresh, and theme selection.

Attributes

  • page_title (:string) (required)
  • status_label (:string) (required)
  • status_state (:atom) (required)
  • filter_form (:map) (required)
  • tab (:atom) (required)
  • tab_paths (:map) (required)
  • recording_paused? (:boolean) (required)
  • recording_control_available? (:boolean) (required)
  • refresh_pending? (:boolean) - Defaults to false.

theme_button(assigns)

@spec theme_button(map()) :: Phoenix.LiveView.Rendered.t()

Renders one option in the system/light/dark theme control.

Attributes

  • mode (:string) (required)
  • label (:string) (required)

Slots

  • inner_block (required)