Why does this says "Default" #31339
-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Presumably in your story file there is code like: export const Default = {
// some story content
} |
Beta Was this translation helpful? Give feedback.
-
The mystical “Default” label in Storybook? Turns out, it’s just the name of your exported story object. That’s it. And what does Storybook do with that? It shows “Default” in the sidebar. Because that’s what you called it.
There’s no magic. Just... the name of your export. I know someone dropped a link to the CSF docs — and yeah, technically it’s all in there.
So if anyone else stumbles across this and wonders:
Here’s the answer: Because that’s the name of your story. Nothing clever. Just naming. *wisdom from the old gods of |
Beta Was this translation helpful? Give feedback.
The mystical “Default” label in Storybook?
Turns out, it’s just the name of your exported story object. That’s it.
And what does Storybook do with that?
It shows “Default” in the sidebar. Because that’s what you called it.
You could name it
"SaltyMcButtonFace"
and Storybook would proudly display:There’s no magic.
No enchanted JSX scrolls.
No prophecies fulfilled by …