#Sean - React Theme

1 messages · Page 1 of 1 (latest)

silent lion
#

Hi 👋

#

The React library is a React-ish wrapper around Stripe.js methods and properties. Can you explain what part of the Appearance API is not clear to you?

blazing jetty
#

hi @silent lion thanks for the help. how would I inject my styling into the PaymentElement component? what I tried -- that code snippet I shared -- doesn't work

#

the docs show that without the react wrapper, to use custom styling is:

stripe.elements({clientSecret, appearance})

i'm not sure how to translate that to the react component though

#

or should I go a level up and try to pass the option into the parent Element?

<Elements stripe={stripePromise} options={options}>
    ...
</Elements>
blazing jetty
#

@silent lion that did the trick! thank you so much for your help