mirror of
https://github.com/penpot/penpot.git
synced 2025-07-30 06:08:31 +02:00
✨ Improve code organization for better integration with storybook
This commit is contained in:
parent
5621c2c394
commit
9c969f8b26
8 changed files with 885 additions and 3595 deletions
20
frontend/src/app/main/ui/components.cljs
Normal file
20
frontend/src/app/main/ui/components.cljs
Normal file
|
@ -0,0 +1,20 @@
|
|||
;; This Source Code Form is subject to the terms of the Mozilla Public
|
||||
;; License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
;; file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
;;
|
||||
;; Copyright (c) KALEIDOS INC
|
||||
|
||||
(ns app.main.ui.components
|
||||
(:require
|
||||
[app.main.ui.components.buttons.simple-button :as sb]
|
||||
[rumext.v2 :as mf]))
|
||||
|
||||
(mf/defc story-wrapper
|
||||
{::mf/wrap-props false}
|
||||
[{:keys [children]}]
|
||||
[:.default children])
|
||||
|
||||
(def default
|
||||
"A export used for storybook"
|
||||
#js {:SimpleButton sb/simple-button
|
||||
:StoryWrapper story-wrapper})
|
Loading…
Add table
Add a link
Reference in a new issue