I have a dropdown component in which I have expandable items. I want the width to be max-content plus 5 rem. so when let's say the width of the content is 6 rem, I want the actual width to be 11 rem. When the content becomes 10rem, I want the dropdown width to be 15rem.
I want to achieve something like width : max-content + 5 rem; How do I do this?