Hi! We're using the ThirdPartyEmailPassword recipe...
# support-questions-legacy
g
Hi! We're using the ThirdPartyEmailPassword recipe and have a couple questions. 1. we're looking to customize it to look like the rest of our app. We use a component library and theme provider, is there a way to apply a theme to a recipe? 2. We have a few additional fields we'd like to collect but they are checkboxes. Can we do that currently? I've seen similar questions in the past that indicate no but were more complicated input controls so I thought it was worth asking.
p
Hi
check out the styling secion of customization to see how you can change the look of the default UI: https://supertokens.com/docs/thirdpartyemailpassword/common-customizations/styling/changing-style
g
Thank you!
p
That being said, if you are using a complete component library and want to make it look seamless you may be better served by building those UIs yourself: https://supertokens.com/docs/thirdpartyemailpassword/custom-ui/init/frontend
g
I've seen the component override and from what I can tell it's the
Header
,
Footer
, or the
Form
itself. Is that correct? I'm not missing other more modular components right?
p
That's about right. I mean there is more than 1 form you can override, and there are other screens as well.
but you can't replace the input component if that's what you mean
g
yep that's exactly what I meant. Thank you for clarifying. I think for now we'll work with the custom styles.
Any thoughts on the checkbox inputs?
p
I think the only way to do that is to replace the form component.
g
Ok, if we were to use the component override approach and just put them in the footer and still render the
DefaultComponent
- would we be able to also throw the values in the
emailPasswordSignUp
function? It looks like it gets passed to the Overriding component.
p
I'm not sure what you mean by throwing values
g
sorry - shouldn't have said "throw"
p
you could try to get values from your fields and inject them into the request in PreAPIHooks
g
What would be the recommended way to do that? Is there a way to inject values into the
context
object that gets passed to
preAPIHook
?
p
well, I think the simplest is to get the values in the preAPIHook itself.