Custom Dropdown using React.js | REACT CUSTOM COMPONENT |
HTML-код
- Опубликовано: 13 апр 2021
- Custom Dropdown | select using react.js. The following code is available on coding sandbox
link for the sandbox - codesandbox.io/live/3vohdkw
#customComponent #react #html #css #dropdown #customDropdown
Perfect video, great tutorial on how to create a custom dropdown
the easiest solution out of hundreds.. KEEP UP THE GOOD WORK
It has been a year and its still a really good tutorial
precise and up to the point thank you.!
kind of css carret
.carret{
transition: all .2s;
position: relative;
width: 0;
height: 0;
border-left: 10px solid transparent;
border-right: 10px solid transparent;
border-top: 10px solid #ddd;
}
just stick it inside the dropdown-btn
:)
made my day, thanks a lot
Great job! Thank you very much
3:39 as a miracle the carret appeared lol
It's cool! ) Thanks )
It seems like this session (Codesandbox) doesn't exist or has been closed
👍👍👍
thanks for the awesome video
Perfect ! Thanks bro
in what time did you add an arrow?
thanks so much bro for this helpfull tutorial .
sandbox link is not working
I want to place two dropdowns placed side by side. Can you please tell me how to do that. Thank you.
Thanks!
Welcome!
thank you sir video is awesome thx for help
how did you get drop down arrow beside "Choose One" for bold property. Am I missing anything please let me know.
see some video on react-icons you will get an clear idea then
Thank you so much sir ❤️
Can i get the link of the whole code..!!it would be helpful
Hey how I can use the same drop-down but with different information ? Amazing video 😊
What happens if I use this as a dynamic component and it is at the bottom of viewport. I want the dropdown to open at top. I have been looking for this solution for over a week.
You can assign a ref to the drop-down element and check for getBoundingClientRect()
Super!!!!
I'd manipulate opacity/visibility with transition by adding/removing classes instead of conditionally rendering.
Yes, you can do that as well.
The sandbox link is not working
codesandbox.io/s/jolly-proskuriakova-pj2tk
@@techcareweb6613 thank you, please put this in the description for others too
nice
Sandbox link is not working
thankyou so much sir
Hi how do you handle click outside with the code in the vid
He doesn't handle it.
GREAT JOB! WORTH THE SUBSCRIBE! GOOD DAY..
what about choose one it is not displaying in dropdown because it should display by default right
add this under {selected} in App.js
Hello it's been 2 years since this but this video just saved my job, Please can anyone help with adding a reset button, so selection can be cleared instead of refreshing the browser
thnq
i can not see the code
i cant use it twice pls help
code is not working.
instead of using 95% width you can use box sizing border-box 5:41
Thank you for the correction 👍
clicking outside is unsolved...
I'll make a new video soon to cover that as well. For now you can use a hook by mantine-ui called use-outside-click
i absolutely cannot stand the fact that they are moving lines for no reason, and cant even put a text explanation to what they are moving and to where. I have rewatched this section of the tutorial 15 times and im about to decide its pointless.
I'll be updating the video soon, it's quite outdated.
nice
Sandbox link is not working