Skip to content

Commit

Permalink
documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
thescientist13 committed May 11, 2022
1 parent fdb3ad4 commit 06233a3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/pages/docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ This function takes a `URL` to a JavaScript file that defines a custom element,
const { html } = await renderToString(new URL('./src/index.js', import.meta.url));
```
#### Options
`renderToString` also supports a second parameter that is an object, called `options`, which supports the following configurations:
- `lightMode`: For more static outcomes (e.g. no declarative shadow DOM), this option will omit all wrapping `<template shadowroot="...">` tags when rendering out custom elements. Useful for static sites or working with global CSS libraries.
## Metadata
Expand Down

0 comments on commit 06233a3

Please sign in to comment.