tajo / ladle

🥄 Develop, test and document your React story components faster.
https://www.ladle.dev
MIT License
2.63k stars 93 forks source link

[feat]: Can we have support for emojies in Story titles? #573

Open Deliaz opened 2 months ago

Deliaz commented 2 months ago

It would be nice to have support for emojis in the story title. From what I can see, the story titles are being used to create a virtual file structure, and it is currently impossible to use anything beyond acceptable JS variable names.

It seems like changes are needed in the naming utilities: packages/ladle/lib/cli/vite-plugin/naming-utils.js. I can try to make those changes if given some direction.

Thanks!

tajo commented 1 month ago

similar to https://github.com/tajo/ladle/issues/569

while we use story titles to create the IDs/navigation, we could preserve the original value in a new property and use that solely for the sidebar navigation