fix: add hidden type to input core component

This commit is contained in:
João Paulo Dubas 2025-05-23 20:39:20 +00:00
parent 5c186d687c
commit bda89b0b01
Signed by: joao.dubas
SSH Key Fingerprint: SHA256:V1mixgOGRc/YMhGx/DNkOSmJxgA2vHNrDZEk3wt/kOA

View File

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