Add placeholder to themes modal

This commit is contained in:
Xavier Julian 2025-02-18 12:50:27 +01:00 committed by Xaviju
parent adbe29e3d1
commit 0530c57d31
7 changed files with 44 additions and 2 deletions

View file

@ -60,6 +60,7 @@
[:id {:optional true} :string]
[:options [:vector schema:combobox-option]]
[:class {:optional true} :string]
[:placeholder {:optional true} :string]
[:disabled {:optional true} :boolean]
[:default-selected {:optional true} :string]
[:on-change {:optional true} fn?]
@ -68,7 +69,7 @@
(mf/defc combobox*
{::mf/props :obj
::mf/schema schema:combobox}
[{:keys [id options class disabled has-error default-selected on-change] :rest props}]
[{:keys [id options class placeholder disabled has-error default-selected on-change] :rest props}]
(let [open* (mf/use-state false)
open (deref open*)
@ -241,6 +242,7 @@
:disabled disabled
:value selected
:on-change on-input-change
:placeholder placeholder
:on-key-down on-key-down}]]
(when (d/not-empty? options)