since it should adjust on screen size you should be able to use the onchange=[(e) => set screen.width(e.target.value)} however i am unsure of this solution but implementing the onchange e handler should maybe work?