@@ -90,7 +90,7 @@ defmodule <%= @web_namespace %>.CoreComponents do
9090 <.button navigate={~p"/"}>Home</.button>
9191 """
9292 attr :rest , :global , include: ~w( href navigate patch method download name value disabled)
93- attr :class , :string
93+ attr :class , :any
9494 attr :variant , :string , values: ~w( primary)
9595 slot :inner_block , required: true
9696
@@ -161,8 +161,8 @@ defmodule <%= @web_namespace %>.CoreComponents do
161161 attr :prompt , :string , default: nil , doc: "the prompt for select inputs"
162162 attr :options , :list , doc: "the options to pass to Phoenix.HTML.Form.options_for_select/2"
163163 attr :multiple , :boolean , default: false , doc: "the multiple flag for select inputs"
164- attr :class , :string , default: nil , doc: "the input class to use over defaults"
165- attr :error_class , :string , default: nil , doc: "the input error class to use over defaults"
164+ attr :class , :any , default: nil , doc: "the input class to use over defaults"
165+ attr :error_class , :any , default: nil , doc: "the input error class to use over defaults"
166166
167167 attr :rest , :global ,
168168 include: ~w( accept autocomplete capture cols disabled form list max maxlength min minlength
@@ -412,7 +412,7 @@ defmodule <%= @web_namespace %>.CoreComponents do
412412 <.icon name="hero-arrow-path" class="ml-1 size-3 motion-safe:animate-spin" />
413413 """
414414 attr :name , :string , required: true
415- attr :class , :string , default: "size-4"
415+ attr :class , :any , default: "size-4"
416416
417417 def icon ( % { name: "hero-" <> _ } = assigns ) do
418418 ~H"""
0 commit comments