---
url: >-
  https://lit-ui-router.dev/v1/reference/lit-ui-router-ssr/index/interfaces/RenderToStringOptions.md
---
[lit-ui-router-ssr](../../index.md) / [lit-ui-router-ssr](../index.md) / RenderToStringOptions

# Interface: RenderToStringOptions

Defined in: packages/lit-ui-router-ssr/src/render.ts:92

Options for [renderToString](../functions/renderToString.md).

## Properties

| Property | Type | Description | Defined in |
| ------ | ------ | ------ | ------ |
|  `dehydrate?` | `DehydrateOptions` | Draws the page's resolve payload with `dehydrate` from `ui-router-server/ssr`, called with these options on the transition the router last landed. The payload goes into the hydration signature, and `bootstrap()` adopts its resolves on the client in place of running them. Pass `{}` to draw every resolve `dehydrate` draws by default. | packages/lit-ui-router-ssr/src/render.ts:125 |
|  `elementRenderers?` | `ElementRendererConstructor`\[] | Element renderers passed through to `@lit-labs/ssr`. Defaults to `[UiViewRenderer, LightElementRenderer]`, as `prerender()`'s option of the same name does, and a list passed here replaces it the same way. As there, a shadow-DOM `LitElement` no renderer in the list answers for renders as its bare tag, empty, and warns once per tag in development; pass [shadowElementRenderers](../variables/shadowElementRenderers.md) to draw it. | packages/lit-ui-router-ssr/src/render.ts:117 |
|  `payload?` | [`ResolvePayload`](ResolvePayload.md) | A resolve payload drawn by hand, in place of [\`dehydrate\`](#dehydrate), for the hydration signature to carry. Passing both throws. | packages/lit-ui-router-ssr/src/render.ts:131 |
|  `root?` | `EventTarget` | The render's root event target. A bare `new EventTarget()` is created when none is passed. The router is provided on it for the render alone and the provider removed before this returns, so a caller may attach providers of its own to it beforehand. | packages/lit-ui-router-ssr/src/render.ts:108 |
|  `router` | [`UIRouterLit`](/reference/lit-ui-router/core/UIRouterLit) | The router the render reads, already standing on the page: settle it on the request's path first. It is provided on [root](#root) for `context-request` and scoped with `withRouterSync` around the render, so `<ui-router>` descendants and the sref attribute directives both find it, and the hydration signature names the state and parameter values it stands on. | packages/lit-ui-router-ssr/src/render.ts:101 |
