Module
Halogen.Storybook
- Package
- purescript-halogen-storybook
- Repository
- rnons/purescript-halogen-storybook
#Stories Source
type Stories :: (Type -> Type) -> Type
type Stories m = Object (Component StoryQuery Unit Void m)
Stories config, each story consists of a story name and a component. Note the component needs to be proxied explicitly.
stories :: forall m. Stories m
stories = Object.fromFoldable
[ Tuple "count" $ proxy $ ExpCount.component
#runStorybook Source
runStorybook :: Config Aff -> HTMLElement -> Aff Unit
Takes stories config and mount element, and renders the storybook.