Skip to content

[✨] Headless Carousel: expose useCarousel hook for easy access to progress, etc. #1089

@maiieul

Description

@maiieul

Is your feature request related to a problem?

When creating reusable components (e.g. styled kit components), I must rely on the user creating their own progressSignal and passing it to the styled Carousel.Root, which then adds the value to the Styled Carousel context, which then propagates the progressSignal to a child component.

Describe the solution you'd like

Expose a const { progress } = useCarousel(); hook to more easily get hold of the progress value inside reusable styled components.

Describe alternatives you've considered

🙅‍♂️

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions