addon-jsx
addon-jsx copied to clipboard
Is there an option to hide function implementation from props?
Describe the bug
Using Storybook 6 with args and auto added actions, this is an example of my component:
const Template = args => <AlertDialog {...args} />;
export const WithTwoButtons = Template.bind({});
WithTwoButtons.args = {
open: true,
description: 'Description',
confirmLabel: 'Confirm',
dismissLabel: 'Cancel',
};
onConfirm and onDismiss are not passed on purpose, so that actions can kick in automatically. However, this is the result in the addon:

Is there a way to configure the story (or globally) so that functions are redacted somehow?
This is how it looks like in the source from addon-docs tab:
