diff --git a/.storybook/withSource.js b/.storybook/withSource.js index c64034c..48f9484 100644 --- a/.storybook/withSource.js +++ b/.storybook/withSource.js @@ -28,7 +28,7 @@ export function templateSourceCode( case "string": return `${key}="${val}"` default: - return `:${key}="${val}"` + return `:${key}='${(JSON.stringify(val, null, 2))}'` } }