Vanilla Storybook render with a map function outputs commas #24513
Unanswered
givensuman
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a Vanilla Storybook project set up to test some styles for a TailwindCSS component library/theme I'm working on. For my button component, I want to display each of the variants for each of the colors, which the following code does:
This works, but for some reason this is outputting commas in between the returned buttons:
This happens whenever using map, nested or not. Is this a bug or am I doing something stupid? I've tried removing newlines from the string templates but it had no effect, so I put them back for readability.
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions