Skip to content

Pass activeIndex to DotComponent in addition avec isActive #61

Closed
@kopax

Description

@kopax

Within a slider, I want to colorate the dot which have been passed in green, the current in red, and the next in grey.

With isActive, I am only able to colorate the current and others,

This ticket is adding activeIndex to the DotComponent here:

isActive={activeIndex === index}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions