material-ui icon indicating copy to clipboard operation
material-ui copied to clipboard

[TablePagination] Add ability to change icons used in TablePaginationActions

Open jake-collibra opened this issue 2 years ago • 4 comments

Duplicates

  • [X] I have searched the existing issues

Latest version

  • [X] I have tested the latest version

Summary 💡

The First, Previous, Next, and Last icons are all hard-coded to be MUI icons. These should be configurable through props for MUI consumers using a different icon library.

Examples 🌈

PaginationItem exposes a components prop that lets consumers specify first, last, next, and previous icons.

Motivation 🔦

We are using MUI as a base for a component library with different designs and icons. We were unable to work around this and now have inconsistency in our icons on tables with pagination.

jake-collibra avatar Jun 20 '22 16:06 jake-collibra

Looks like we can add the components & componentsProps API here to allow people to override all slots available.

mnajdova avatar Jun 21 '22 07:06 mnajdova

If this is a blocker you can create a custom TablePaginationAction component and adjust it to your needs.

mnajdova avatar Jun 21 '22 07:06 mnajdova

Hey, @mnajdova, I would like to work on this issue if no one else is working on it. Thanks!

pratikkarad avatar Aug 01 '22 12:08 pratikkarad

Hi @mnajdova, @ZeeshanTamboli, @siriwatknp team, any updates on this?

pratikkarad avatar Aug 09 '22 12:08 pratikkarad