I am trying stand up a a Kratos instance for a TanStack Start app that I am playing with. I am struggling with the mental model for how to work with Kratos forms. The forms are fetched and rendered from the server so I am losing type safety but the form definition is also incomplete so I have to define things like placeholder in client so why not just statically define the form. Am I missing something?
I may not be articulating correctly, but it feels like the intent of the ui.nodes is to be a form DSL of sorts. But the DSL is incomplete. If I need something like a placeholder for my email field, I have to very specifically have a switch to map the field into an email field but hardcode my placeholder. Which kind of leaves me in between a dynamic and a static form.
m
magnificent-energy-493
04/14/2025, 3:35 PM
I see 🤔
I guess you are not using Ory Elements?
You could open a discussion in the appropriate repo on GitHub and we can go a bit more into detail there, with code examples etc. and maybe figure out what an preferred/ideal solution would be
d
damp-television-87203
04/15/2025, 12:31 AM
Nah - I didn't reach for the elements. I was just rendering on top of pretty much vanilla shadcn components. Happy to write something up in GitHub if you think it's useful.