score:11

Accepted answer
<MaterialTable
  title="Editable Example"
  columns={state.columns}
  data={state.data}
  actions={[
    {
      icon: "add_box",
      tooltip: "my tooltip",
      position: "toolbar",
      onClick: () => {
        console.log("clicked");
      }
    }
  ]}
/>

score:0

<MaterialTable
  title="Editable Example"
  columns={state.columns}
  data={state.data}
  actions={[
    {
      icon: "add_box",
      tooltip: "my tooltip",
      isFreeAction: true,
      onClick: () => {
        console.log("clicked");
      }
    }
  ]}
/>

score:0

        <MaterialTable
            components={{
                Toolbar: (props) => (
                    <div
                        style={{
                            display: "flex",
                            justifyContent: "flex-end",
                            alignItems: "center"
                        }}
                    >
                        <div style={{ width: "13rem" }}>
                            <MTableToolbar {...props} />
                        </div>
                        <Tooltip title="Add">
                            <IconButton>
                                <AddBox />
                            </IconButton>
                        </Tooltip>
                    </div>
                ),
            }}
        />

Related Query

More Query from same tag