Hello Ory team and Community. I've got a question ...
# ory-selfhosting
l
Hello Ory team and Community. I've got a question about Ory Elements and custom UI. I'm trying to do something quite simple and I'd rather not do this in a "hacky" way. I want the login form to render inputs with no labels on them. With the code below I have successfully overridden the header but overriding the Label is causing my form inputs to completely disappear. Any idea why this is happening?
const myOverrides = {
Card: {
Header: MyCustomHeader,
// Override the card header component <- this works
},
Node: {
Label: () => null, _// Override labels with our test component <- this doesn't work_
},
}
export function LoginWithCustomComponents({
_flow_,
_config_,
}: {
flow,
config
}) {
return <Login flow={_flow_} config={_config_} components={myOverrides} />
}