mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-09 00:19:13 +08:00
9 lines
226 B
TypeScript
9 lines
226 B
TypeScript
import { addons } from 'storybook/internal/manager-api';
|
|
import startCase from 'lodash/startCase.js';
|
|
|
|
addons.setConfig({
|
|
sidebar: {
|
|
renderLabel: ({ name, type }) => (type === 'story' ? name : startCase(name)),
|
|
},
|
|
});
|