defmodule ChiyaWeb.PublicComponents do use Phoenix.Component use Phoenix.VerifiedRoutes, endpoint: ChiyaWeb.Endpoint, router: ChiyaWeb.Router, statics: ChiyaWeb.static_paths() @doc """ Renders a horizontal line """ def line(assigns) do ~H"""
""" end @doc """ Renders a header with title. """ attr :class, :string, default: nil attr :inline, :boolean, default: false slot :inner_block, required: true slot :subtitle slot :actions def header(assigns) do ~H"""

<%= render_slot(@inner_block) %> <%= render_slot(@subtitle) %>

<%= render_slot(@subtitle) %>

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