I want customize mui pagination bar. I want customize first page, last page buttons <, > with 'prev', 'next' words.
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
/>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With