Drops 101
Moov Drops are custom web components added to your page the same way you would add any HTML tag. Moov Drops are defined in the Moov.js package. After initializing Moov.js, you will have access to our full library of Drops.
|
|
Properties
You can configure a Drop via properties set through JavaScript.
Properties can be accessed using a reference to the Drop’s HTML element (<moov-example-drop>
in this case).
How to set a property
|
|
Attributes
For your convenience, string-type properties can be set directly on the HTML element through a corresponding attribute.
Properties are written in camelCase
, while attributes are written in kebab-case
.
How to set an attribute
|
|
However, for performance reasons, property changes will not update the corresponding attribute.
Methods
Some Drops expose functional properties called methods. You can call these methods to perform some action.
How to call a method
|
|
Themes
You can customize the look and feel of Moov Drops by editing our pre-defined CSS variables. Read our themes guide to learn more.