How do overrides in the codegen API work?

Using codegen APIs can I pass overrides and params to the component generated? Also could I use the non Javascript-hydrated html component into an email? will it work? How does it actually work without any javascript? is it a prerender of the react component with zero javascript?

Hi, by the codegen APIs do you mean this? (Yes you can pass overrides/params there)

You can get the non-JS HTML components using the REST API and passing in hydrate=0:

But they’ll use CSS that may not have broad email client compatibility (email clients tend to be lagging far behind)

And yes exactly, it is a pre-render of the React component with no JS

@yang I meant the REST APIs, is it possible to pass in arguments to the renderer for custom slots or overrides?

Not yet, though we’ll be working on it!