Skip to content

Commit

Permalink
add props to the RFC
Browse files Browse the repository at this point in the history
  • Loading branch information
ematipico committed May 27, 2024
1 parent 390afac commit 155bfce
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions proposals/0048-container-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,12 +159,16 @@ const response = await container.renderToString(Card, {
someString: "string",
someNumber: 100
},
props: {
"someState": true
}
});
```

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

Expand Down

0 comments on commit 155bfce

Please sign in to comment.