storybook/docs/_snippets/svelte-csf-addon-options.md
2024-11-05 10:48:44 +00:00

741 B

export default {
  // Other configuration
  addons: [
    {
      name: '@storybook/addon-svelte-csf',
      options: {
        legacyTemplate: true, // Enables the legacy template syntax
      },
    },
  ],
};
// Replace your-framework with the name of your Svelte framework
import type { StorybookConfig } from '@storybook/your-framework';

const config: StorybookConfig = {
  // Other configuration
  addons: [
    {
      name: '@storybook/addon-svelte-csf',
      options: {
        legacyTemplate: true, // Enables the legacy template syntax
      },
    },
  ],
};
export default config;