Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how can I customize mui pagination bar?

I want customize mui pagination bar. I want customize first page, last page buttons <, > with 'prev', 'next' words.

like image 841
Nick Leo Avatar asked Nov 18 '25 13:11

Nick Leo


1 Answers

You can override these components like this. There's a section in their documentation here and the PaginationItem's API here.

<Pagination
  count={10}
  renderItem={(item) => (
    <PaginationItem
      components={{
        last: (props) => <button {...props}>Last</button>,
        next: (props) => <button {...props}>Next</button>,
        first: (props) => <button {...props}>First</button>,
        previous: (props) => <button {...props}>Previous</button>
      }}
      {...item}
    />
  )}
  showFirstButton
  showLastButton
/>
like image 152
Ioannis Potouridis Avatar answered Nov 21 '25 03:11

Ioannis Potouridis



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!