1

I have a standard Mantine React Table and I want to add a tooltip to on of the Action Icons and the column headers. However, when I do, they are cut-off by the length of the column. How can I make the tooltip the highest priority? I have tried using the z-index to no avail.

This is my table:


const table = useMantineReactTable({
...
renderRowActions: ({ row }) => (
        <>
        <Tooltip label="Text" position="left" withArrow z-index="9999">
        <Box style={{ display: 'flex', alignItems: 'center', gap: '0px' }}>
          <ActionIcon onClick={(event) => handleViewJSON()}>
            
              <IconJson />
   
          </ActionIcon>
        </Box>
        </Tooltip>
    ),
    ...
}
1
  • you can try the withinPortal prop on the tooltip to force it. Commented Dec 16, 2024 at 10:05

1 Answer 1

0

use it like this worked for me

<Tooltip label="Send Email" position="top" withArrow>
<ActionIcon color="blue" onClick={() => console.log(row.original)}>
<IconSend />
</ActionIcon>
</Tooltip>
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.