fix: add hidden type to input core component

This commit is contained in:
2025-05-23 20:39:20 +00:00
parent 5c186d687c
commit bda89b0b01

View File

@@ -276,8 +276,8 @@ defmodule SlaxWeb.CoreComponents do
attr :type, :string,
default: "text",
values: ~w(checkbox color date datetime-local email file month number password
range search select tel text textarea time url week)
values:
~w(checkbox color date datetime-local email file hidden month number password range search select tel text textarea time url week)
attr :field, Phoenix.HTML.FormField,
doc: "a form field struct retrieved from the form, for example: @form[:email]"