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
The Moov form Drop enables Moov customers to securely and seamlessly submit sensitive user data to Moov. With the moov-form element, information is entered by the user and processed directly by Moov.
Text input
Include the Moov text input Drop with the Moov form Drop to securely and seamlessly submit sensitive user data to Moov.
Card number input
Include the Moov card number input Drop with the Moov form Drop to securely and seamlessly submit sensitive card numbers to Moov.
Expiration date input
Include the Moov expiration date input Drop with the Moov form Drop to securely and seamlessly submit sensitive card data to Moov.
Card security code input
Include the Moov security code input Drop with the Moov form Drop to securely and seamlessly submit sensitive card data to Moov.