addon-jsx icon indicating copy to clipboard operation
addon-jsx copied to clipboard

Is there an option to hide function implementation from props?

Open yannbf opened this issue 4 years ago • 0 comments

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: image

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: image

yannbf avatar Mar 11 '21 17:03 yannbf