We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6bdb7a3 commit 657d3caCopy full SHA for 657d3ca
1 file changed
.storybook/manager.ts
@@ -1,6 +1,16 @@
1
import { addons } from '@storybook/manager-api';
2
import nhsTheme from './theme';
3
+import { startCase, upperFirst } from "lodash";
4
+
5
+const sentenceCase = string => {
6
+ if (typeof string !== 'string') return ''
7
+ return upperFirst(startCase(string).toLowerCase())
8
+}
9
10
addons.setConfig({
- theme: nhsTheme,
11
+ sidebar: {
12
+ renderLabel: ({ name, type }) =>
13
+ sentenceCase(name),
14
+ },
15
+ theme: nhsTheme
16
});
0 commit comments