Composable Moov Drops
The composable Drops are a collection of interconnected elements, including moov-form
, moov-text-input
, moov-card-number-input
, and other fields. By combining these elements, your users can interact directly with the Moov API, keeping sensitive data away from your app and simplifying PCI compliance. Need to update a user's credit card information? Combine a moov-form
with a moov-card-number-input
and Moov takes care of the rest.
Use the Drops 101 guide to learn the basics of properties, attributes, and initializing Drops.
|
|
Theming & styles
The composable Drop inputs will automatically style themselves based on inheritable <input>
styles, such as font-size, color, and line-height.
You can further customize the outer contents of an element by targeting the element's tag, such as moov-text-input
, and applying additional styles. To re-style the inner contents of an element, use the inputStyle
property.
Note: Pseudo-selectors such as :focus
and :valid
don't work through iframes. Instead, use :has(.focus)
to apply styles to these pseudo-classes. All input pseudo-classes are supported.
|
|
Properties
Properties for elements can be accessed through JavaScript using a reference to the specific form element.
- View
moov-form
properties - View
moov-text-input
properties - View
moov-card-number-input
properties - View
moov-expiration-date-input
properties - View
moov-card-security-code-input
properties
Attributes
Any string-type property can alternatively be set via attributes:
- View
moov-form
attributes - View
moov-text-input
attributes - View
moov-card-number-input
attributes - View
moov-expiration-date-input
attributes - View
moov-card-security-code-input
attributes
Moov form
With the moov-form
element, information is entered by the user and processed directly by Moov. All information is captured by iframes and hidden from the customer's website. The moov-form
coordinates user input across a collection of individual form elements, making it highly flexible and adaptable to your needs.
Text input
Combine the moov-text-input
with the moov-form
to submit sensitive user data to Moov. With the moov-text-input
element, information entered by the user is captured by iframes and hidden from the customer's website.
Card number input
Combine the moov-card-number-input
with the moov-form
to submit sensitive user data to Moov. With the moov-card-number-input
element, information entered by the user is captured by iframes and hidden from the customer's website.
Expiration date input
Combine the moov-expiration-date-input
element with the moov-form
to submit sensitive card data to Moov. With the moov-expiration-date-input
element, information entered by the user is captured by iframes and hidden from the customer’s website.
Card security code input
Combine the moov-card-security-code-input
element with the moov-form
to submit sensitive user data to Moov. With the moov-card-security-code-input
element, information entered by the user is captured by iframes and hidden from the customer’s website.