How to create new component?

Hello,

for example I want to create range-slider. I setup hassbian on the frontend development. What files should I create? Graphics is created using polymer. Do it need to create a file (XXXX.py) in a folder custom_components ? Where to create html file with technology polymer?

thanks