Automatic sizing of rightSection
for <Input>
#4747
adamerose
started this conversation in
Feature requests
Replies: 1 comment
-
Any update on this? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The rightSection prop takes a React element but if you give it anything bigger than an icon the layout doesn't look good, it overlaps the text area and scrollbar and overflows out of the right side. You can fix it by setting
rightSectionWidth
to the size of your element, but this doesn't work if it has varying size and still overlaps the scrollbar.It would be nice if
rightSectionWidth
was determined automatically without needing the user to explicitly set it, so the contents ofrightSection
would always fit between the text to its left the the scrollbar to its right with no overflow/overlap.https://codesandbox.io/s/mantine-sandbox-forked-ws68n5
Beta Was this translation helpful? Give feedback.
All reactions