$ cnpm install @storybook/client-api
@storybook/client-api
-- Deprecated Story APIs (storiesOf
)NOTE This API is deprecated, and the CSF format is preferred for all stories.
storiesOf
APIThe @storybook/client
API provides the storiesOf()
API, which is proxied through to the CSF API.
In order to appear to the store like the CSF API, a call to storiesOf().add()
does the following:
StoryIndex
data structuremoduleExports
object that is equivalent to the exports from a CSF file that produced the same stories.In order to achieve the old storySort
functionality, the client API also needs access to the project annotations.
Copyright 2013 - present © cnpmjs.org