Skip to content

Commit

Permalink
Merge pull request #82 from gokh4nozturk/feature/docs
Browse files Browse the repository at this point in the history
dynamic code examples
  • Loading branch information
f authored Sep 28, 2022
2 parents 4d39e7b + f66fbc0 commit be94e73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .storybook/withSource.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export function templateSourceCode(
case "string":
return `${key}="${val}"`
default:
return `:${key}="${val}"`
return `:${key}='${(JSON.stringify(val, null, 2))}'`
}
}

Expand Down

0 comments on commit be94e73

Please # to comment.