whitespace-se / storybook-addon-html

A Storybook addon that extracts and displays compiled syntax-highlighted HTML
Other
95 stars 43 forks source link

2 Feature Requests #27

Open danyball opened 4 years ago

danyball commented 4 years ago

Hi Guys! Nice Addon.

It would be cool if you implement these requests:

  1. Add parameterName to have possibility to disable addon in a specific story. From SB:

Note if the parameters to a story include { foo: { disable: true } } (where foo is the parameterName of your addon), your decorator will not be called.

  1. Make Panel title "HTML" customizable

Thanks Daniel

dbruvers commented 3 years ago

@danyball we needed the first feature as well on a story that loaded all of Bootstrap's icon and was slowed down significantly by Prettier parsing the markup it seems.

Adding this seems to have disabled the addon's behavior although it's tab still appears in the Addons Panel:

MyStory.parameters = {
  html: {
    disable: true,
  }
};
hannahwalsh7 commented 2 years ago

Have there been any updates on removing the tab from the Addon Panel when disabled?

jiwoo-choi commented 3 months ago

@hannahwalsh7 disable option is now available as of v6.1.0.

danyball commented 3 months ago

3 years later :-D