defmodule <%= @module_name %>.Components.UI.Card do @moduledoc """ Composable Card component with 6 independent sub-components. Ejected from PhiaUI — owns this copy of the source. Customise freely. ## Sub-components | Function | Element | Purpose | |---------------------|---------|--------------------------------| | `card/1` | `
` | Subtitle / supporting text | | `card_content/1` | `
$12,340.00
<.card_footer> Last updated: today """ use Phoenix.Component import <%= @module_name %>.ClassMerger, only: [cn: 1] attr :class, :string, default: nil, doc: "Additional CSS classes" attr :rest, :global, doc: "HTML attributes forwarded to the div element" slot :inner_block, required: true, doc: "Card content" def card(assigns) do ~H"""<%%= render_slot(@inner_block) %>
""" end attr :class, :string, default: nil, doc: "Additional CSS classes" attr :rest, :global, doc: "HTML attributes forwarded to the div element" slot :inner_block, required: true, doc: "Primary content" def card_content(assigns) do ~H"""