Open ms2d opened 6 months ago
Looks like adding docs
with format
set to dedent
does the trick:
/** @type { import('@storybook/vue3').Preview } */
import '../src/style.css';
const preview = {
parameters: {
actions: { argTypesRegex: '^on[A-Z].*' },
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/i,
},
},
docs: {
source: {
format: 'dedent',
},
},
},
};
export default preview;
How can we
dedent
the source code for<Canvas />
elements, when using this plugin?