Module

Halogen.Storybook

Package
purescript-halogen-storybook
Repository
rnons/purescript-halogen-storybook

#Stories Source

type Stories :: (Type -> Type) -> Typetype 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

#StoryQuery Source

#runStorybook Source

runStorybook :: Config Aff -> HTMLElement -> Aff Unit

Takes stories config and mount element, and renders the storybook.

Re-exports from Halogen.Storybook.Proxy

#proxy Source

proxy :: forall f i o m. Component f i o m -> Component (Const Void) i Void m

A proxy that hides both the Query and Message of wrapped component.