mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-25 05:03:10 +08:00
9 lines
210 B
TypeScript
9 lines
210 B
TypeScript
|
import { addons } from '@storybook/addons';
|
||
|
import startCase from 'lodash/startCase';
|
||
|
|
||
|
addons.setConfig({
|
||
|
sidebar: {
|
||
|
renderLabel: ({ name, type }) => (type === 'story' ? name : startCase(name)),
|
||
|
},
|
||
|
});
|