# unable to lower the width of 'switch' web-component

**URL:** <https://forum.servoy.com/t/unable-to-lower-the-width-of-switch-web-component/21052>\
**Category:** Questions\
**Created:** [August 16, 2023, 5:10am UTC](https://forum.servoy.com/t/unable-to-lower-the-width-of-switch-web-component/21052 "2023-08-16T05:10:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![aijazalee889](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/aijazalee889/32/5129_2.png) [@aijazalee889](https://forum.servoy.com/u/aijazalee889)\
**Post date:** [August 16, 2023, 5:10am UTC](https://forum.servoy.com/t/unable-to-lower-the-width-of-switch-web-component/21052/1 "2023-08-16T05:10:44Z")

</div>

Hi,

I am using a ‘switch’ web-component in my project, but I am unable to lower the width of switch to show it properly. However there is a property ‘componentSize’ which only increase/decrease its height. If I set it from ‘width’ property it doesn’t show correctly.

Regards  
Aijaz Ali

 ![switch_element.png](https://canada1.discourse-cdn.com/flex010/uploads/servoy/original/2X/b/bbb411d87e75d00482d8bc095811e905f9774508.png)
