API / Helpers

Page Helpers

Helpers for documentation page templates.

embed (preview, scenario = nil, **opts)

Render a 'live' embed of a component preview.

If no scenario name is provided then the default (first) preview scenario will be rendered in the embed.


preview String

Name of the preview class to embed

scenario String

Example method name

opts Hash

Options hash

User Guide

Extending Lookbook