mirror of
https://github.com/penpot/penpot.git
synced 2025-07-29 16:47:35 +02:00
✨ Make storybook wrapper to render both dark and light themes
This commit is contained in:
parent
2bb7726180
commit
b5aba58aac
7 changed files with 69 additions and 26 deletions
|
@ -6,15 +6,10 @@
|
|||
|
||||
(ns app.main.ui.ds
|
||||
(:require
|
||||
[app.main.ui.ds.buttons.simple-button :as sb]
|
||||
[rumext.v2 :as mf]))
|
||||
|
||||
(mf/defc story-wrapper
|
||||
{::mf/wrap-props false}
|
||||
[{:keys [children]}]
|
||||
[:.default children])
|
||||
[app.main.ui.ds.buttons.simple-button :refer [simple-button]]
|
||||
[app.main.ui.ds.storybook :as sb]))
|
||||
|
||||
(def default
|
||||
"A export used for storybook"
|
||||
#js {:SimpleButton sb/simple-button
|
||||
:StoryWrapper story-wrapper})
|
||||
#js {:SimpleButton simple-button
|
||||
:StoryWrapper sb/story-wrapper})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue