-
Hi, Is Elements basically a new, universal version of the code in kratos-selfservice-ui-react-nextjs's pkg folder? So far it seems that the Next example doesn't use the Next.js API part yet, is that on purpose or just because it's super new (a few days old today)? Basically I'm developing a new Next.js app, I'm thinking of taking the Elements example + adding the API so it doesn't need a proxy. Is this the recommended route today? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Hi @hyperknot The kratos-selfservice-ui-react-nextjs repository is still relevant for reference, but we decided to create a UI library which does a lot of the heavy lifting of mapping UI nodes from Ory to HTML elements. Essentially we hope that Ory Elements can be a drop in library for you to use in your project to render the Authentication Flows with theming capabilities. The logic is still managed by your application such as fetching the data, caching, user routing etc. At this point in time the UI offered by Ory Elements isn't as customizable as we want it to be, but we think it is a good starting point and definitely something you can use in a project to get set up quickly. You can have a look at a NextJs example we have using Ory Elements here https://github.com/ory/elements/tree/main/examples/nextjs-spa |
Beta Was this translation helpful? Give feedback.
Hi @hyperknot
The kratos-selfservice-ui-react-nextjs repository is still relevant for reference, but we decided to create a UI library which does a lot of the heavy lifting of mapping UI nodes from Ory to HTML elements.
Essentially we hope that Ory Elements can be a drop in library for you to use in your project to render the Authentication Flows with theming capabilities. The logic is still managed by your application such as fetching the data, caching, user routing etc. At this point in time the UI offered by Ory Elements isn't as customizable as we want it to be, but we think it is a good starting point and definitely something you can use in a project to get set up quickly.
You can ha…