Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Storybook Extras Addons

License

NotificationsYou must be signed in to change notification settings

sheriffMoose/storybook-extras

Repository files navigation

logo

Storybook Extras

Storybook addons library with a bunch of useful features along with other nice-to-haves and definitely silly features.

Table of Contents

Getting started

  1. Install the addon:
yarn add @storybook-extras/preset -D
  1. Add the addon
// .storybook/main.tsimport{StorybookConfig}from'@storybook/angular';import{ExtrasConfig}from'@storybook-extras/preset';constconfig:StorybookConfig&ExtrasConfig={    ..."addons":["@storybook-extras/preset",        ...],    ...}exportdefaultconfig;
  1. To disable the built-in features, add the following to yourmain.js:
// .storybook/main.tsimport{StorybookConfig}from'@storybook/angular';import{ExtrasConfig}from'@storybook-extras/preset';constconfig:StorybookConfig&ExtrasConfig={    ..."addons":["@storybook-extras/preset",        ...],    ..."extras":{// disable Angular addon// by default it will only be added ONLY if the `framework` is set to `@storybook/angular`"angular":false,// disable console logs// further options are configurable in the `preview.js` file// please see the `Console` addon docs for more info"console":false,// disable markdown/html docs"markdown":false,// set options for markdown/html docs"markdown":{"includes":path.join(process.cwd(),'src'),"excludes":[/\.component.html$/],// exclude angular component html files}// disable swagger docs completely        "swagger":false,// set openapi url for swagger docs"swagger":{"stories":[{"title":"Swagger UI","url":"https://petstore.swagger.io/v2/swagger.json"}]},}}exportdefaultconfig;
  1. Refer to the sections below for the documentation of the respective addons.

Demo

Find the published demo storybook on Chromatichere

Addons

AddonDescriptionVersion
PresetStorybook Extrasaddon.preset.imgDocs
AngularExtra features for AngularDocs
Console LogsDisplay console logs in the storybookaddon.console.imgDocs
Markdown/HTML DocsDisplay markdown/html docs in the storybookaddon.markdown.imgDocs
OpenAPI/Swagger UIDisplay OpenAPI/Swagger UI in the storybookaddon.swagger.imgDocs
Toolbar ButtonsMakes adding a custom toolbar button a breatheaddon.toolbars.imgDocs
Story VariantsDisplay all variants of a story in one story page all togetheraddon.variants.imgDocs

Packages

No packages published

Contributors4

  •  
  •  
  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp