Width and Height Furniture - Ideas

Hi, how can i make width and height interactivly like on ikea furniture configurator?

When i add new furniture object then width and height update automatically.

IKEA FURNITURE https://www.ikea.com/addon-app/storageone/pax/web/latest/?range=pax&uiPlatform=web&locale=ro-RO#/planner

Any ideas and appreciated. Thank you.