Skip to content

Minor confusion with docs when you need pages with single element #34

@dzebisati

Description

@dzebisati

Hello!

First of all, thank you for creating and sharing this library! I’m really impressed with the depth and care you’ve brought to this project, especially in delivering a native solution that meets such a significant community need 👏🏻. The attention to detail is remarkable, and it’s clear how much effort and expertise went into making this possible.

When you need to use "single element page" functionality there can be some initial confusion. Developers may mistakenly think that the carousel is unsuitable for this specific use case, because there is no such options in API and page size are dynamically determined by the DOM layout.

It turns out, though, that this is easily resolved with the data-should-snap attribute, which perfectly handles such cases.

Clarifying this feature in the docs and maybe highlight in storybook could help users realize the full potential of this library.

Thank you again for all your hard work on this project!

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions