defmodule ToweropsWeb.Components.Skeletons do @moduledoc """ Loading skeleton components for placeholder UI during data fetches. """ use Phoenix.Component @doc """ A pulsing card placeholder. """ attr :class, :string, default: nil def skeleton_card(assigns) do ~H"""
""" end @doc """ Table rows with pulsing placeholders. """ attr :rows, :integer, default: 5 attr :cols, :integer, default: 4 def skeleton_table(assigns) do ~H"""
""" end @doc """ A stat card skeleton (number + label placeholder). """ attr :class, :string, default: nil def skeleton_stat(assigns) do ~H"""
""" end @doc """ Dashboard loading skeleton - full placeholder for the dashboard content. """ def skeleton_dashboard(assigns) do ~H"""
<.skeleton_stat :for={_ <- 1..6} />
""" end end