add accept attribute to input component

This commit is contained in:
Inhji 2023-04-09 13:44:08 +02:00
parent cb0c9d7a83
commit 7a28eca1ab

View file

@ -321,7 +321,7 @@ defmodule ChiyaWeb.CoreComponents do
attr :prompt, :string, default: nil, doc: "the prompt for select inputs" attr :prompt, :string, default: nil, doc: "the prompt for select inputs"
attr :options, :list, doc: "the options to pass to Phoenix.HTML.Form.options_for_select/2" attr :options, :list, doc: "the options to pass to Phoenix.HTML.Form.options_for_select/2"
attr :multiple, :boolean, default: false, doc: "the multiple flag for select inputs" attr :multiple, :boolean, default: false, doc: "the multiple flag for select inputs"
attr :rest, :global, include: ~w(autocomplete cols disabled form max maxlength min minlength attr :rest, :global, include: ~w(autocomplete accept cols disabled form max maxlength min minlength
pattern placeholder readonly required rows size step) pattern placeholder readonly required rows size step)
slot :inner_block slot :inner_block