flowbite-react
flowbite-react copied to clipboard
feat(carousel): automatic hiding of navigation buttons when the first…
feat(carousel): automatic hiding of navigation buttons when the first or last image is active
Added 'autoHideControls' feature to ImageSlider for intuitive navigation button visibility.
- [x] I have followed the Your First Code Contribution section of the Contributing guide
Gives a nice touch for UX when not needing to move from last image to first one. Conditional rendering of carousel controls when autoHideControls is true.
https://github.com/themesberg/flowbite-react/assets/36115659/87521d58-b0b4-4d34-bd78-d59b950d10a7
fixes #1205
New optional prop added to Carousel component: autoHideControls with false as default value.
Example: