SlopUI.Sink.Helpers (SlopUI v0.1.0)

Copy Markdown View Source

Kitchen-sink page helpers.

Summary

Functions

A titled example block with the rendered demo and optional code.

Highlights a HEEx snippet with Lumis. Colors use light-dark(), so they follow the page theme.

Functions

colors()

example(assigns)

A titled example block with the rendered demo and optional code.

Attributes

  • title (:string) (required)
  • description (:string) - Defaults to nil.
  • code (:string) - Defaults to nil.
  • theme (:string) - force a scheme for the demo area. Defaults to nil.

Slots

  • inner_block (required)

highlight(code)

Highlights a HEEx snippet with Lumis. Colors use light-dark(), so they follow the page theme.