API Reference phx_live_storybook v0.2.0

modules

Modules

PhxLiveStorybook provides a storybook-like UI interface for your Phoenix LiveView components.

Behaviour implemented by your backend module. Most of it is precompiled through macros.

An entry designates any kind of content in your storybook. For now only following kinds of entries are supported: component, :live_component, and :page.

Responsible for rendering your components code snippet, for a given PhxLiveStorybook.Variation.

Responsible for rendering your function & live components, for a given PhxLiveStorybook.Variation.

Provides LiveView routing for storybook.

A variation is an example of how your component can be used.

A variation group is a set of similar variations that will be rendered together in a single preview <pre> block.