Hi! I have some questions regarding the state of ...
# general
b
Hi! I have some questions regarding the state of ory-elements. Im trying to understand wether I should use
@ory/elements
or
@ory/elements-react
. I have a React SPA app and have previously been using
@ory/elements
. If I go to the current elements npm package it says its unmaintained and that I should use
@ory/elements-react
instead. However, all examples in the github repository are using
@ory/elements
currently. In the github repo it says I should look at nextjs-spa example, however this example also uses
@ory/elements
and not
@ory/elements-react
. I tried adding
@ory/elements-react
to my project anyway but I see some things are missing, such as
ThemeProvider
that is available from
@ory/elements
. Is there any updated documentation about ory elements available? Thanks
b
Hi, there are examples available using the new `@ory/elements-react`: https://github.com/ory/elements/tree/main/examples/nextjs-app-router Theming will be done using CSS or custom component overrides only. Documentation is still WIP and we will announce it once it's ready
b
Ok, thank you!
e
@bland-eye-99092 I see
@ory/elements-react
is not published on npm yet. 0.0.0 only while repo has more versions. What would be the course of action here? to use the library directly from the GitHub repo or use one of the
-next
versions? I see consent screen is not ready yet 😕 Or should we keep on the old
@ory/elements
until the react version is ready? And if not, how to use it outside nextjs? I see the
0.0.0
requires multiple packages from it
Please ignore the last part, I needed exclude it from ssr
Copy code
ssr: {
  noExternal: ["@ory/*"],
},
b
0.0.0 is outdated already, please use the @next tag for the time being. https://www.npmjs.com/package/@ory/elements-react/v/1.0.0-next.29