storybook/code/.storybook/manager.tsx
Norbert de Langen 7bfc2add3d cleanup
2024-11-12 15:00:38 +01:00

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)),
},
});