Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ant Design: remove the divider line between table rows

Tags:

reactjs

antd

When making a Table in Ant Design, there are always gray divider lines between each row. Is there a way to style these divider lines or completely remove them from the table?

like image 557
user2921009 Avatar asked Oct 24 '25 01:10

user2921009


2 Answers

You should override the antd table styles

.ant-table-tbody > tr > td {
  border: none
}
like image 53
Artyom Vancyan Avatar answered Oct 26 '25 18:10

Artyom Vancyan


You need to provide headerSplitColor: 'transparent', for Table in your ConfigProvider which is the recommened approch to customising theme in Antd,

lean more here : https://ant.design/docs/react/customize-theme

<ConfigProvider
  theme={{
    components: {
      Table: {
        headerSplitColor: 'transparent'
      }
    }
  }}
>
  // your code
</ConfigProvider>
like image 40
Shamseer Ahammed Avatar answered Oct 26 '25 20:10

Shamseer Ahammed