defmodule PlausibleWeb.Components.Generic do @moduledoc """ Generic reusable components """ use Phoenix.Component, global_prefixes: ~w(phx-) attr :title, :string, default: "Notice" attr :class, :string, default: "" slot :inner_block def notice(assigns) do ~H"""
<%= render_slot(@inner_block) %>