themesberg / themesberg/flowbite-react
Setting Active Image In the Slider
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 2.1k
- Forks
- 506
- PR merge metrics
- No merged PRs in 30d
Description
We can programatically set the active image: https://flowbite.com/docs/components/carousel/#default-slider
But the same is not available in flowbite react: https://www.flowbite-react.com/docs/components/carousel
Can we please get this in React too?
Expected Behaviour:
When we set data-carousel-item="active" or something similar on any image, that image should be shown in the carousel and not from index 0.
I am using: import { Carousel } from 'flowbite-react';
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Carousel component exposed by import { Carousel } from 'flowbite-react'; and compare its API with the default-slider behavior described in the linked Flowbite documentation. Done means a caller can select the initially displayed image, including the documented active-item behavior, rather than always starting at index 0.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100