Snap to placeholder
Specify a placeholder area, element or container - whatever you want to call it - to insert the component. Think of it as a slot. The component should expand and use all the available width and height
of this slot. If it's huge, your slider will be huge. If it's a 20px tall and 200px wide container, then that will be the space being used.
.slider-container {
display: block;
width: 50%;
height: 10%;
}
<div class="slider-container"></div>
const slider = new SliderElement()
document.querySelector('.slider-container').appendChild(slider)