Module

Storybook

Package
purescript-react-basic-storybook
Repository
rowtype-yoga/purescript-react-basic-storybook

#meta Source

meta :: forall props attrs attrs_. Union attrs attrs_ (MetaR props) => Record attrs -> Meta

#story_ Source

story_ :: forall props opts opts_. Union (RequiredStoryOptions props (Record ()) opts) opts_ (StoryOptions props (Record ()) (Record ()) (Record ())) => Record (RequiredStoryOptions props (Record ()) opts) -> Story

#story Source

story :: forall props args argTypes params opts opts_. SameKeys args argTypes => Union (RequiredStoryOptions props (Record args) opts) opts_ (StoryOptions props (Record args) (Record argTypes) (Record params)) => Record (RequiredStoryOptions props (Record args) opts) -> Story

#simpleStory Source

simpleStory :: forall props. props -> Story

#parameters Source

parameters :: forall r. r -> MetaParameters

#playFunction Source

playFunction :: ({ canvasElement :: CanvasElement } -> Aff Unit) -> PlayFunction

#loaderFunction Source

#metaDecorator Source

Re-exports from Storybook.Types

#StoryOptions Source

type StoryOptions :: Type -> Type -> Type -> Type -> Row Typetype StoryOptions props args argTypes params = RequiredStoryOptions props args (argTypes :: argTypes, args :: args, decorators :: Array (StoryDecorator args argTypes), name :: String, parameters :: params, play :: PlayFunction)

#StoryContext Source

type StoryContext args argTypes = { argTypes :: argTypes, args :: args, globals :: Record (), hooks :: Record (), parameters :: Record (), viewMode :: String }

#Story Source

data Story

#RequiredStoryOptions Source

type RequiredStoryOptions :: Type -> Type -> Row Type -> Row Typetype RequiredStoryOptions props args r = (component :: Effect (props -> JSX), render :: (props -> JSX) -> args -> JSX | r)

#PlayFunction Source

#MetaR Source

type MetaR :: Type -> Row Typetype MetaR props = (argTypes :: ArgTypes, args :: Args, component :: Effect props, decorators :: Array MetaDecorator, excludeStories :: Array String, id :: String, includeStories :: Array String, loaders :: Array LoaderFunction, parameters :: MetaParameters, play :: PlayFunction, tags :: Array String, title :: String)

#MetaParameters Source

#MetaDecorator Source

#Meta Source

data Meta

#LoaderFunction Source