Bandera.Dashboard.Components (bandera v0.4.0)

Copy Markdown View Source

Function components for the Bandera dashboard.

Summary

Functions

Renders a human-readable summary of a flag's active gates.

Renders the dashboard's self-contained, prefixed stylesheet as a <style> block. In :daisyui theme it renders nothing — the host app supplies the styles via its own daisyUI build.

Functions

state_summary(assigns)

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

Renders a human-readable summary of a flag's active gates.

Attributes

  • flag (:map) (required)
  • theme (:atom) - Defaults to :standalone.

styles(assigns)

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

Renders the dashboard's self-contained, prefixed stylesheet as a <style> block. In :daisyui theme it renders nothing — the host app supplies the styles via its own daisyUI build.

Attributes

  • theme (:atom) - Defaults to :standalone.