When creating a new UI component with a template you should use Vue.js. The component UI logics is described in .vue file in the component folder (i.e. src/components/example-button/UI/ExampleButton.vue in the template) and for convenience sake, there are modules that you just import in the .vue code.