Customize the appearance and behavior of React nekuda.js components
<NekudaPaymentForm>
and individual information elements by passing a styles
object to the <NekudaWalletProvider>
. This allows you to define base styles, as well as styles for specific states (such as focus
or error
) and individual element types.
Refer to the documentation for each element to see available styling selectors and properties.
NameElement
EmailElement
CardNumberElement
CardExpiryElement
CardCvcElement
elementId
prop.
elementId
, it allows the element to be targeted by instance-specific configurations defined in the <NekudaWalletProvider>
(such as custom styles or placeholders via the elements
or placeholders
props on the Provider). This is useful for advanced customization of specific fields.elementId
, the element will automatically generate a unique internal ID. It will still inherit type-based styles and global configurations from the Provider but cannot be targeted for instance-specific configurations that rely on a known ID.style
and placeholder
props for direct, instance-specific overrides.
Each element securely renders an iframe managed by nekuda to handle sensitive data.
Remember to:
<NekudaWalletProvider>
.useNekudaWallet()
hook to access elements.submit()
for form submission.options
(including style
) or a direct placeholder
prop to individual elements for element-specific styling or placeholders, overriding global settings from the Provider if needed.<NekudaCardManagement>
component can be styled to match your application’s design: