-
Hi, first of all, great project. Here is a screenshot which I think will explain a lot: I want to be able to make it fixed size (something like rows:5 + resize:none property in textarea. I am not even sure where should I start so any help would be appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
I forgot one more thing to mention - I am using CreatableSelect |
Beta Was this translation helpful? Give feedback.
-
I'm not gonna lie, that image made me laugh. Honestly, From there, as long as you're keeping track of your selected options with a state value, you can render them however you want nearby. Something like this: Here's a complete example of how you might accomplish this: https://codesandbox.io/s/v65hnp?file=/app.tsx |
Beta Was this translation helpful? Give feedback.
-
Yep, this is exactly what I needed. Thanks a lot, I can go on from here to further modify it to my needs. |
Beta Was this translation helpful? Give feedback.
I'm not gonna lie, that image made me laugh. Honestly,
chakra-react-select
might not be the best use case for what you're trying to do. But if you're set on it, you're probably better off not displaying the selected options inside the field itself. This can easily be turned off by setting the propcontrolShouldRenderValue={false}
.From there, as long as you're keeping track of your selected options with a state value, you can render them however you want nearby.
Something like this:
Here's a complete example of how you might accomplish this: https://codesandbox.io/s/v65hnp?file=/app.tsx