defmodule <%= @module_name %>Web.Components.Hero do use Phoenix.Component @moduledoc """ Hero component """ attr(:class, :string, default: "", doc: "CSS class for the hero component") slot(:inner_block, required: true, doc: "Main content block of the hero component") slot(:subtitle, required: false, doc: "Subtitle content block") slot(:actions, required: false, doc: "Action buttons or links") def hero(assigns) do ~H"""

<%%= render_slot(@inner_block) %>

<%%= render_slot(@subtitle) %>
<%%= render_slot(@actions) %>
""" end end