defmodule PhoenixDuskmoon.Loading do @moduledoc """ Render table. """ use PhoenixDuskmoon, :html @doc """ Generates Loading. ## Examples ```heex <.dm_loading_ex size={44} item_count={99} speed={"2s"} /> ``` """ @doc type: :component attr(:id, :any, default: false, doc: """ html attribute id """ ) attr(:class, :any, default: "", doc: """ html attribute class """ ) attr(:item_count, :integer, default: 88, doc: """ html attribute class """ ) attr(:speed, :string, default: "4s", doc: """ html attribute class """ ) attr(:size, :integer, default: 21, doc: """ html attribute class """ ) def dm_loading_ex(assigns) do assigns = assigns |> assign(:random_inner, Enum.random(10_000..100_000)) ~H"""