Gelso77
Gelso77

Reputation: 1895

Storybook: hide 'show code' button inside an Angular project

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

Upvotes: 1

Views: 947

Answers (1)

obotezat
obotezat

Reputation: 1135

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

export const StoryX= StoryXTemplate.bind({})
StoryX.parameters = {
  docs: {
    source: {
      code: null
    }
  }
}

Upvotes: 2

Related Questions