{unit}}
controllerProps={{ rules: { required: true } }}
transformValue={(value) => {
const newHeight = changeSize(value, 'height', 'width');
setValue(`${path}.height`, newHeight);
return value;
}}
debounceTime={250}
placeholder="width"
/>
{unit}}
controllerProps={{ rules: { required: true } }}
transformValue={(value) => {
const newWidth = changeSize(value, 'width', 'height');
setValue(`${path}.width`, newWidth);
return value;
}}
debounceTime={250}
placeholder="height"
/>