Skip to content

Commit 155bfce

Browse files
committed
add props to the RFC
1 parent 390afac commit 155bfce

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

proposals/0048-container-api.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,12 +159,16 @@ const response = await container.renderToString(Card, {
159159
someString: "string",
160160
someNumber: 100
161161
},
162+
props: {
163+
"someState": true
164+
}
162165
});
163166
```
164167

165168
- `slots`: required in case your component is designed to render some slots inside of it. It supposed named slots too.
166169
- `request`: required in case your component/page access to some information such as `Astro.url` or `Astro.request`.
167170
- `params`: the `Astro.params` to provide to the components
171+
- `props`: the `Astro.props` to provide to the components
168172
- `locals`: initial value of the `Astro.locals`.
169173
- `routeType`: useful to test endpoints.
170174

0 commit comments

Comments
 (0)