Dynamically adjust the size of a customised slider?

Hi I am currently working on a custom UI for a plugin and was wondering how I can set up my custom slider objects so that they grow bigger or smaller depending on their value going up or down. Hope that makes sense.

I think you might be looking for the SliderStyle LinearBar, If I understand your question.

I mean more like how to make the UI listen to the parameter of the slider so that it adjusts its size and/or bounds when the parameter is changed