Remove box-shadow around table
Hi,
I am trying to figure out how to remove the box-shadow around tables. The styling exercises show how to edit columns, rows and cells but the shadow seems to be outside the table.
Any hint?
Hi @fgenoese
You can try overriding container:
import { Paper } from '@material-ui/core';
<MaterialTable
component={{
Container: props => <Paper {...props} elevation={0}/>
}}
/>
Unfortunately, the code has no effect, i.e. the resulting HTML still says:
<div class="MuiPaper-root-8 MuiPaper-elevation2-12 MuiPaper-rounded-9">...</div>
sorry. Make component => components.
import { Paper } from '@material-ui/core';
<MaterialTable
components={{
Container: props => <Paper {...props} elevation={0}/>
}}
/>
Works like a charm - and I learned something new about Material UI styling I guess. Thanks!
sorry. Make component => components.
import { Paper } from '@material-ui/core';
<MaterialTable components={{ Container: props => <Paper {...props} elevation={0}/> }} />
is there a way to remove the border-shadow (divider that appears after fixed column) while using fixedColumns property?
Unfortunately, the code has no effect, i.e. the resulting HTML still says:
<div class="MuiPaper-root-8 MuiPaper-elevation2-12 MuiPaper-rounded-9">...</div>
I'm having the same
I get Property 'component' does not exist on type 'IntrinsicAttributes &
Hello, I still not remove elevation for paper! Any solution?
I get
Property 'component' does not exist on type 'IntrinsicAttributes &
sorry. Make component => components.
import { Paper } from '@material-ui/core';
<MaterialTable components={{ Container: props => <Paper {...props} elevation={0}/> }} />