Replies: 9 comments 5 replies
-
Hey @bnhr can you provide more details on what you mean by Or are you envisaging something else entirely? |
Beta Was this translation helpful? Give feedback.
-
I like how bumbag.style one works |
Beta Was this translation helpful? Give feedback.
-
@bnhr @benoitgrelard @jjenzz I would like to propose an api draft: <Pagination.Root
itemsPerPage={itemsPerPage}
total={total}
page={page}
defaultPage={defaultPage}
onPageChange={(page) => { } }
>
<Pagination.Previous></Pagination.Previous>
<Pagination.List>
{(items) =>
items.map((item) => <PaginationItem /> )
}
</Pagination.List>
<Pagination.Next></Pagination.Next>
</Pagination.Root> PaginationList would receive a render function as children to map through page numbers and breaks... PS: |
Beta Was this translation helpful? Give feedback.
-
for anyone interested, I added this to react-ui-roundup https://react-ui-roundup.dimitrimitropoulos.com/#Pagination I was looking into implementing this with radix |
Beta Was this translation helpful? Give feedback.
-
I think pagination components can be both tough and quite opinionated and so perhaps that's the reason why the team at Radix UI have not yet included one. I'm embarrassed to admit how long this took me but.. here's an example based on Radix Primitives and Tailwind... https://github.com/infonomic/remix.infonomic.io/tree/develop/app/ui/components/pager .. with a lot of help from the Material UI headless usePagination hook found here... https://mui.com/material-ui/react-pagination/#usepagination |
Beta Was this translation helpful? Give feedback.
-
I don't think its because they are opinionated. A basic standard pagination doing the 'hard lifting' would be good enough. That's why we want the pagination. |
Beta Was this translation helpful? Give feedback.
-
Hi guys, I found a independent component: https://github.com/thijssmudde/react-headless-pagination, and it looks nice. But yes I want Radix implement Pagination too. |
Beta Was this translation helpful? Give feedback.
-
Hi guys, I think pagination logics is quite simple, so I've made a simple one:
|
Beta Was this translation helpful? Give feedback.
-
Duplicate of #1856 |
Beta Was this translation helpful? Give feedback.
-
Do you folks consider creating a Pagination Component? I think it would be great if there is any chance to build complex things like Pagination...
Beta Was this translation helpful? Give feedback.
All reactions