Replies: 1 comment 2 replies
-
You can learn how this middleware works in Floating UI documentation – https://floating-ui.com/docs/size |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've looked at the Mantine source code and the Floating UI docs, but I'm still unclear on how to use the
size
property inmiddlewares
. It seems like I'd need to give it anapply
function with the middleware state, max height, and max width, but I'm not sure how to get the state of the middleware. I mostly just want to control the height to a certain level before the dropdown flips to a top position.I see Mantine accepts a boolean value for
size
also, but I can't imagine that does any good if it doesn't know what the max-height of the dropdown should be. It doesn't make a difference when I use it.Beta Was this translation helpful? Give feedback.
All reactions