const useStyles = createStyles((theme) => ({
border: `1px solid ${theme.colors.orange[6]}`,
color: theme.colors.grape[6],
color: theme.colors.red[6],
export default function StylingExampleWithIndividualActionStyling() {
const showContextMenu = useContextMenu();
const { classes } = useStyles();
onContextMenu={showContextMenu(
icon: <IconCopy size={16} />,
onClick: () => copyImageToClipboard(src),
className: classes.copyAction,
icon: <IconDownload size={16} />,
onClick: () => downloadImage(src),
sx: (theme) => ({ background: theme.colors.orange[6] }),
icon: <IconFlipVertical size={16} />,
onClick: () => setFlipVertical((v) => !v),
icon: <IconFlipHorizontal size={16} />,
onClick: () => setFlipHorizontal((v) => !v),
root: classes.contextMenuRoot,
item: classes.contextMenuItem,