1

Do you know if is possible to remove the 'show code' button below the component? because the output it's weird. I am using the package '@storybook/addon-docs'

enter image description here

Gelso77
  • 1,763
  • 6
  • 30
  • 47

1 Answers1

2

You could set docs > source > code to null like so:

export const StoryX= StoryXTemplate.bind({})
StoryX.parameters = {
  docs: {
    source: {
      code: null
    }
  }
}
obotezat
  • 1,041
  • 16
  • 20