mirror of
https://github.com/penpot/penpot.git
synced 2025-06-04 18:31:39 +02:00
🎉 Add inline SVG and npm cli tools
This commit is contained in:
parent
ebd6cdfe29
commit
87d176fa2f
7 changed files with 25 additions and 12 deletions
|
@ -1,11 +1,10 @@
|
|||
(ns app.main.ui.components.buttons.simple-button
|
||||
(:require-macros [app.main.style :as stl])
|
||||
(:require
|
||||
[app.common.data.macros :as dm]
|
||||
[rumext.v2 :as mf]))
|
||||
|
||||
(mf/defc simple-button
|
||||
{::mf/wrap-props false}
|
||||
[{:keys [on-click children]}]
|
||||
[:button {:on-click on-click :class (dm/str (stl/css :button))} children])
|
||||
[:button {:on-click on-click :class (stl/css :button)} children])
|
||||
|
||||
|
|
|
@ -7,11 +7,10 @@
|
|||
(mf/defc story-wrapper
|
||||
{::mf/wrap-props false}
|
||||
[{:keys [children]}]
|
||||
[:.default children])
|
||||
[:.default children])
|
||||
|
||||
(def ^export default #js {
|
||||
:icons #js {
|
||||
:IconAddRefactor icons/add-refactor
|
||||
}
|
||||
:StoryWrapper story-wrapper
|
||||
:SimpleButton sb/simple-button})
|
||||
(def ^export default #js
|
||||
{:icons #js
|
||||
{:IconAddRefactor icons/add-refactor}
|
||||
:StoryWrapper story-wrapper
|
||||
:SimpleButton sb/simple-button})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue