I'd like to call my storybook file Widget.demo.tsx instead of Widget.stories.tsx. This is possible with custom indexers; in fact, the docs specifically say
But that link just takes me in circles -- nowhere does it tell me what that trivial indexer actually looks like. Digging into the API reference, the examples all seem to elide critical parts of the actual code:
// Read file and generate entries ...
Could the docs be updated to show some real working examples of indexers, including a simple "noop" indexer that just picks up a different filename than the convention?
I'd like to call my storybook file
Widget.demo.tsx
instead ofWidget.stories.tsx
. This is possible with custom indexers; in fact, the docs specifically sayBut that link just takes me in circles -- nowhere does it tell me what that trivial indexer actually looks like. Digging into the API reference, the examples all seem to elide critical parts of the actual code:
Could the docs be updated to show some real working examples of indexers, including a simple "noop" indexer that just picks up a different filename than the convention?