Surface.Catalogue.Playground (surface v0.7.0) View Source

Experimental LiveView to create Playgrounds for catalogue tools.

Options

Besides the buit-in options provided by the LiveView itself, a Playground also provides the following options:

  • subject - Required. The target component of the Playground.

  • height - Required. The initial height of the Playground.

  • catalogue - Optional. A module that implements the Surface.Catalogue providing additional information to the catalogue tool. Usually required if you want to share your components as a library.

  • body - Optional. Sets/overrides the attributes of the Playground's body tag. Useful to set a different background or padding.