9 lines
210 B
JavaScript

import { addons } from '@storybook/addons';
import startCase from 'lodash/startCase';
addons.setConfig({
sidebar: {
renderLabel: ({ name, type }) => (type === 'story' ? name : startCase(name)),
},
});