defmodule PinchflatWeb.CustomComponents.TabComponents do @moduledoc false use Phoenix.Component @doc """ Takes a list of tabs and renders them in a tabbed layout. """ slot :tab, required: true do attr :title, :string, required: true end def tabbed_layout(assigns) do ~H"""
<%= tab.title %>
<%= render_slot(tab) %>
""" end end