mirror of
https://github.com/penpot/penpot.git
synced 2025-07-27 03:47:26 +02:00
✨ Add placeholder to themes modal
This commit is contained in:
parent
adbe29e3d1
commit
0530c57d31
7 changed files with 44 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue