material-table icon indicating copy to clipboard operation
material-table copied to clipboard

Add icon before title

Open iqasim-com opened this issue 7 years ago • 2 comments

Hi everyone how can i add an icon before title ?

like this image

iqasim-com avatar Jun 20 '19 09:06 iqasim-com

Yeah, it is possible.

Example:

components={{
  Toolbar: props => (
    <div style={{display: 'flex', alignItems: 'center', }}>
      <YourIcon />
      <MTableToolbar {...props} />
    </div>
  ),
}}

You can add other styles or components to your liking in toolbar.

AugustoCalaca avatar Jun 20 '19 15:06 AugustoCalaca

It works thanks @AugustoCalaca

iqasim-com avatar Jun 20 '19 16:06 iqasim-com