Making Click to Text Buttons with Wix Custom Elements in Velo

Introduction:
This video is a short tutorial I created for a problem my company has been asked about implementing several times that I couldn’t find an answer for until I started delving into Custom Elements.

How I did it:
The video goes step by step from start to finish on why we use a Custom Element for this, how to create a custom element, how to pass it some data from the Velo page.js file, add the functionality for the end goal, and finally how to style it

Tools, Documentation and APIs:
Wix Custom Elements Docs with examples: About Custom Elements
MDN Custom Elements Docs:
Using custom elements - Web APIs | MDN

Example:

8 Likes

Great tutorial @Matthew_McKey thanks for sharing.