diff --git a/lib/plausible_web/components/generic.ex b/lib/plausible_web/components/generic.ex index 02d192d1f..382a7c22b 100644 --- a/lib/plausible_web/components/generic.ex +++ b/lib/plausible_web/components/generic.ex @@ -2,7 +2,7 @@ defmodule PlausibleWeb.Components.Generic do @moduledoc """ Generic reusable components """ - use Phoenix.Component, global_prefixes: ~w(x-) + use Phoenix.Component @notice_themes %{ yellow: %{ @@ -22,6 +22,7 @@ defmodule PlausibleWeb.Components.Generic do attr(:type, :string, default: "button") attr(:class, :string, default: "") attr(:disabled, :boolean, default: false) + attr(:onclick, :string, default: "") attr(:rest, :global) slot(:inner_block) @@ -31,6 +32,7 @@ defmodule PlausibleWeb.Components.Generic do