Skip to content

Pagination component #64

@riccardoperra

Description

@riccardoperra

I'm using @solid-aria and I noticed that the pagination primitives are not already ported. Reading through the react-aria source code it seems that everything needed to the pagination is already done, since there are already the button and locale primitives.

If possible I can work on it too😄

But one thing I didn't understand though is how to implement localized strings. It seems that they have a json with static translations for each language, but currently in this port there is not already a primitive that handles that. Should these string be handled by the consumer user in order to pass the aria-label prop?

https://github.com/adobe/react-spectrum/blob/main/packages/%40react-aria/pagination/intl/index.js

https://github.com/adobe/react-spectrum/blob/26b95c60e84a36ae8366b91f451b1b11d4819c73/packages/%40react-aria/pagination/src/usePagination.ts#L24

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