mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 11:11:53 +08:00
10 lines
229 B
TypeScript
10 lines
229 B
TypeScript
import { addons } from 'storybook/internal/manager-api';
|
|
|
|
import { startCase } from 'es-toolkit/compat';
|
|
|
|
addons.setConfig({
|
|
sidebar: {
|
|
renderLabel: ({ name, type }) => (type === 'story' ? name : startCase(name)),
|
|
},
|
|
});
|