How do you give a title value to an individual story in storybook?
Seems like it should be storyname.title = 'value' but that doesn't work.
export default {
title: "Root Component Title",
component: SomeComponent,
};
export const SomeComponentVariant = () => <SetUpTwoFAContainer />;
// This title does not work
SomeComponentVariant.title = "Set Up Parent Container";
You can override the story name using SomeComponentVariant.storyName = '...' to match the component name.
StorybookJS Docs source
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With