We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6cd3bb2 commit db580caCopy full SHA for db580ca
1 file changed
src/components/table/components/action.js
@@ -29,6 +29,7 @@ const Action = ({
29
iconColor,
30
flavour = "borderless",
31
CustomUIAction,
32
+ CustomComponent,
33
label,
34
TooltipComponent = Tooltip,
35
ref,
@@ -56,7 +57,7 @@ const Action = ({
56
57
handleAction?.()
58
}
59
- const Component = label ? Button : IconButton
60
+ const Component = CustomComponent || (label ? Button : IconButton)
61
62
return (
63
<>
@@ -108,6 +109,7 @@ const Action = ({
108
109
iconColor={iconColor}
110
label={label}
111
padding={[0.5]}
112
+ data={currentRow?.original || selectedRows}
113
{...rest}
114
/>
115
</Flex>
0 commit comments