For example, I have a button that consists of several p's. This part is universal. I want to combine them into a custom label so that I can pass something like <my-label data-value=""> Call it in the form of </my-label>. How to extract it into components (use native html, js).
You can ask for advice, address, or how to do anything. Welcome
What you need may be Web Components