Mohammad Asif cf937194cb Removed un-waned things 1. před 11 měsíci
..
dist cf937194cb Removed un-waned things 1. před 11 měsíci
README.md cf937194cb Removed un-waned things 1. před 11 měsíci
jest.config.js cf937194cb Removed un-waned things 1. před 11 měsíci
package.json cf937194cb Removed un-waned things 1. před 11 měsíci

README.md

CSF Plugin

The CSF plugin reads CSF files and enriches their content via static analysis. It supports Webpack, Vite, and other bundlers using unplugin.

Source snippets

CSF plugin can add static source snippets to each story. For example:

export const Basic = () => <Button />;

Would be transformed to:

export const Basic = () => <Button />;
Basic.parameters = {
  storySource: {
    source: '() => <Button />',
  },
  ...Basic.parameters,
};

This allows @storybook/addon-docs to display the static source snippet.