height/minHeight for Flex component #861
-
I was wondering if the Flex component was missing height/maxHeight/minHeight props? I see that it takes similar width props here: paste/packages/paste-core/layout/flex/src/index.tsx Lines 73 to 75 in 7a70537 The reason I'm asking is because I'm trying to vertically align a Spinner in a Flexed box with a static height, and TypeScript accepts my height props but doesn't actually propagate them. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
HI @vnguyen94, it's an interesting suggestion that we might consider. The current idea with components like Flex and Grid is that they are purely convenience components that only do one job really well. For We're still learning about the usefulness of convenience components like these via adoption, so this is a useful observation. For now, I'd just use |
Beta Was this translation helpful? Give feedback.
HI @vnguyen94, it's an interesting suggestion that we might consider.
The current idea with components like Flex and Grid is that they are purely convenience components that only do one job really well. For
Flex
, it does flex box layout really well. If you want more than just that one job, then you probably needBox
as it comes with all the css props you can hopefully ever need.We're still learning about the usefulness of convenience components like these via adoption, so this is a useful observation.
For now, I'd just use
Box
, we might add further layout properties toFlex
at a later date.