themesberg / themesberg/flowbite-react

Setting Active Image In the Slider

Open
#1,094 11 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

:rocket: enhancement good first issue
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.