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