Home > Software design >  Is there a way I can combine two icons in IconComponent in Table sort of Material UI
Is there a way I can combine two icons in IconComponent in Table sort of Material UI

Time:12-10

I am trying to build table where I need to have up/down triangle next to the column instead of default up and arrow after the column name to indicate sorting. I went through the docs and read IconComponent prop can be used to give other icon than default, but I couldn't find a way to combine two icons and display for the sort. Please let me know on how sort indication similar to one attached in image can be achieved.

enter image description here

Attaching the sandbox link till whatever I have tried.

Edit EnhancedTable Material Demo (forked)

  • Related