最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

reactjs - Changing the move icon in Material React Table - Stack Overflow

programmeradmin1浏览0评论

I am unable to change size of the default move icon in Material React Table V3.

I have tried to add:

children: <DragIndicatorIcon sx={{ fontSize: "18px" }} />

But it is not overriding the default move icon sizing.

I am unable to change size of the default move icon in Material React Table V3.

I have tried to add:

children: <DragIndicatorIcon sx={{ fontSize: "18px" }} />

But it is not overriding the default move icon sizing.

Share Improve this question edited Apr 6 at 18:46 Aaron Morefield 1,00411 silver badges21 bronze badges asked Mar 19 at 9:44 E.DhivyaJLE.DhivyaJL 111 bronze badge
Add a comment  | 

1 Answer 1

Reset to default 1

You can customize the default move icon (DragHandleIcon) by using icons prop.

<MaterialReactTable
  icons={{
    DragHandle: (props) => (
      <DragIndicatorIcon sx={{ fontSize: 18 }} {...props} />
    ),
  }}
/>

发布评论

评论列表(0)

  1. 暂无评论