PgFlowDashboard.Components.StatusBadge (PgFlow v0.1.0)

Copy Markdown View Source

Status badge component with WCAG AA compliant colors.

Summary

Functions

Renders a status badge.

Functions

status_badge(assigns)

Renders a status badge.

Attributes

  • :status - The status to display (completed, failed, started, created)
  • :size - Badge size (:sm, :md, :lg). Default: :md
  • :pulse - Whether to show pulse animation for active states. Default: false

Attributes

  • status (:any) (required)
  • size (:atom) - Defaults to :md.
  • pulse (:boolean) - Defaults to false.