mirror of
https://github.com/penpot/penpot.git
synced 2025-07-09 12:47:54 +02:00
♻️ Fix swap component
This commit is contained in:
parent
532a656daf
commit
ced1f60940
7 changed files with 373 additions and 270 deletions
|
@ -22,6 +22,8 @@
|
|||
placeholder (unchecked-get props "placeholder")
|
||||
icon (unchecked-get props "icon")
|
||||
autofocus (unchecked-get props "auto-focus")
|
||||
id (unchecked-get props "id")
|
||||
|
||||
|
||||
handle-change
|
||||
(mf/use-fn
|
||||
|
@ -51,7 +53,8 @@
|
|||
children
|
||||
[:div {:class (stl/css :search-input-wrapper)}
|
||||
icon
|
||||
[:input {:on-change handle-change
|
||||
[:input {:id id
|
||||
:on-change handle-change
|
||||
:value value
|
||||
:auto-focus autofocus
|
||||
:placeholder placeholder
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue