Module

Halogen.Storybook

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

#Stories Source

type Stories m = StrMap (Component HTML 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 = SM.fromFoldable
  [ Tuple "count" $ proxy $ ExpCount.component

#StoryQuery Source

#runStorybook Source

runStorybook :: forall eff. Stories (Aff (HalogenEffects eff)) -> HTMLElement -> Aff (HalogenEffects eff) Unit

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

Re-exports from Halogen.Storybook.Proxy

#ProxyS Source

data ProxyS f i a

#proxy Source

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

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