'Ant Design: remove the divider line between table rows
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?
Solution 1:[1]
if you are using css-modules in your Nextjs application, you can override table styles like this:
in them component file:
import classes from './Comp.module.css';
function Comp(props){
...
return (
<Table
...
className={classes.customTable}
/>
)
}
and in the Comp.module.css file:
.customTable .ant-table-tbody > tr > td{
border: none
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Saeed Shamloo |
