@@ -61,10 +61,10 @@ defmodule PetalComponents.Field do
61
61
62
62
attr :rows , :string , default: "4" , doc: "rows for textarea"
63
63
64
- attr :class , :string , default: nil , doc: "the class to add to the input"
65
- attr :wrapper_class , :string , default: nil , doc: "the wrapper div classes"
64
+ attr :class , :any , default: nil , doc: "the class to add to the input"
65
+ attr :wrapper_class , :any , default: nil , doc: "the wrapper div classes"
66
66
attr :help_text , :string , default: nil , doc: "context/help for your field"
67
- attr :label_class , :string , default: nil , doc: "extra CSS for your label"
67
+ attr :label_class , :any , default: nil , doc: "extra CSS for your label"
68
68
attr :selected , :any , default: nil , doc: "the selected value for select inputs"
69
69
70
70
attr :required , :boolean ,
@@ -333,7 +333,7 @@ defmodule PetalComponents.Field do
333
333
"""
334
334
end
335
335
336
- attr :class , :string , default: nil
336
+ attr :class , :any , default: nil
337
337
attr :errors , :list , default: [ ]
338
338
attr :name , :string
339
339
attr :rest , :global
@@ -359,7 +359,7 @@ defmodule PetalComponents.Field do
359
359
Renders a label.
360
360
"""
361
361
attr :for , :string , default: nil
362
- attr :class , :string , default: nil
362
+ attr :class , :any , default: nil
363
363
attr :rest , :global
364
364
attr :required , :boolean , default: false
365
365
slot :inner_block , required: true
@@ -385,7 +385,7 @@ defmodule PetalComponents.Field do
385
385
"""
386
386
end
387
387
388
- attr :class , :string , default: "" , doc: "extra classes for the help text"
388
+ attr :class , :any , default: nil , doc: "extra classes for the help text"
389
389
attr :help_text , :string , default: nil , doc: "context/help for your field"
390
390
slot :inner_block , required: false
391
391
attr :rest , :global
0 commit comments