Socket
Socket
Sign inDemoInstall

@storybook/addon-info

Package Overview
Dependencies
Maintainers
8
Versions
495
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@storybook/addon-info - npm Package Compare versions

Comparing version 3.2.7 to 3.2.9

2

package.json
{
"name": "@storybook/addon-info",
"version": "3.2.7",
"version": "3.2.9",
"description": "A Storybook addon to show additional information for your stories.",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -44,3 +44,3 @@ # Storybook Info Addon

`withInfo` can also take an options object in case you want to configure how
`withInfo` can also take an [options object](#global-options) in case you want to configure how
the info panel looks on a per-story basis:

@@ -54,6 +54,4 @@

withInfo({
text: 'doc string about my component',
maxPropsIntoLine: 1,
maxPropObjectKeys: 10,
maxPropArrayLength: 10,
text: 'String or React Element with docs about my component', // Warning! This option's name will be likely renamed to "summary" in 3.3 release. Follow this PR #1501 for details
// other possible options see in Global options section below
)(() =>

@@ -83,4 +81,10 @@ <Component>Click the "?" mark at top-right to view the info.</Component>

setDefaults({
inline: true,
maxPropsIntoLine: 1,
header: false, // Toggles display of header with component name and description
inline: true, // Displays info inline vs click button to view
source: true, // Displays the source of story Component
propTables: [/* Components used in story */], // displays Prop Tables with this components
propTablesExclude: [], // Exclude Components from being shoun in Prop Tables section
styles: {}, // Overrides styles of addon
marksyConf: {}, // Overrides components used to display markdown. Warning! This option's name will be likely deprecated in favor to "components" with the same API in 3.3 release. Follow this PR #1501 for details
maxPropsIntoLine: 1, // Max props to display per line in source code
maxPropObjectKeys: 10,

@@ -87,0 +91,0 @@ maxPropArrayLength: 10,

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc