I am reusing one component two times but they have different width
<card-component [width]="50px">
<card-component [width]="30px">
//in card-component
@Input() public width: any;
<div [style.width]="width">
</div>
i want to change width of these two component (assign different width) to make it responsive on different screen size using media query. how can i get control of individual component.