Utility component: Resize (Fit)
andretchen0 opened this issue · 0 comments
andretchen0 commented
Description
It would be useful for staging and iterating to have a <Resize />
component that uniformly scales child components to fit within a box of dimensions size
.
Suggested solution
Drei offers a similar component that resizes child components to fit in a 1 x 1 x 1 box. But we could make it more useful, flexible, and compact if instead of these props ...
width
: booleanheight
: booleandepth
: boolean
... we use ...
size
: TresVectorFlexibleParams
... with :size="1"
as the default.
Alternative
No response
Additional context
No response
Validations
- I agree to follow this project's Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.