You're viewing docs for an older version of Lit. Click here for the latest version.

Internal demos

This is an internal only page to demonstrate various ways to embed code into Markdown docs.

Just highlight some code, non-interactive. Uses the same renderer as playground, so highlight styles will match.

One editable file from a project, with a preview right below.

Arguments:

  1. Path of the project dir from samples/PATH/project.json.
  2. Filename from project to show.

Additional project.json config options:

  • previewHeight: Height of the preview in pixels (default 120px).

Fully editable playground project, with preview to the side.

Arguments:

  1. (Required) Path of the project dir from samples/PATH/project.json.

Use extends in your project.config to inherit from the site base configuration that resolve imports to lit-next: