You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Under the hood, this function calls [`renderToResponse`](#rendertoresponse) and calls`Response.text()`.
128
+
Under the hood, this function calls [`renderToResponse()`](#rendertoresponse) and `Response.text()`.
129
129
130
130
It also accepts an object as a second argument that can contain a [number of options](#rendering-options).
131
131
@@ -145,7 +145,7 @@ It also accepts an object as a second argument that can contain a [number of opt
145
145
146
146
## Rendering options
147
147
148
-
Both [`renderToResponse`](#rendertoresponse) and [`renderToString`](#rendertostring) accept an object as their second argument:
148
+
Both [`renderToResponse()`](#rendertoresponse) and [`renderToString()`](#rendertostring) accept an object as their second argument:
149
149
150
150
```ts
151
151
exporttypeContainerRenderOptions= {
@@ -162,7 +162,7 @@ These optional values can be passed to the rendering function in order to provid
162
162
163
163
### `slots`
164
164
165
-
**Type**:`Record<string, any>`;
165
+
**Type:**`Record<string, any>`
166
166
167
167
An option to pass content to be rendered with [`<slots>`](/en/basics/astro-components/#slots).
168
168
@@ -224,7 +224,7 @@ const result = await container.renderToString(Card, {
224
224
225
225
### `props` option
226
226
227
-
**Type**:`Record<string, unknown>`
227
+
**Type:**`Record<string, unknown>`
228
228
229
229
An option to pass [properties](/en/basics/astro-components/#component-props) for Astro components.
230
230
@@ -252,7 +252,7 @@ const { name } = Astro.props;
252
252
253
253
### `request` option
254
254
255
-
**Type**:`Request`
255
+
**Type:**`Request`
256
256
257
257
An option to pass a `Request` with information about the path/URL the component will render.
258
258
@@ -274,7 +274,7 @@ const result = await container.renderToString(Card, {
274
274
275
275
### `params` option
276
276
277
-
**Type**:`Record<string, string | undefined>`;
277
+
**Type:**`Record<string, string | undefined>`
278
278
279
279
An object to pass information about the path parameter to an Astro component responsible for [generating dynamic routes](/en/guides/routing/#dynamic-routes).
280
280
@@ -300,7 +300,7 @@ const result = await container.renderToString(LocaleSlug, {
300
300
301
301
### `locals` options
302
302
303
-
**Type**:`App.Locals`
303
+
**Type:**`App.Locals`
304
304
305
305
An option to pass information from [`Astro.locals`](/en/reference/api-reference/#locals) for rendering your component.
0 commit comments