Skip to content

Commit c256bee

Browse files
tw15eganjoshblack
andcommitted
chore(storybook): add version number to storybook (#5514)
Co-authored-by: Josh Black <josh@josh.black>
1 parent 53ffeb7 commit c256bee

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/react/.storybook/config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import {
1616
CARBON_TYPE_TOKEN,
1717
} from './addon-carbon-theme/shared';
1818
import Container from './Container';
19+
import PackageInfo from './../package.json';
1920

2021
const customPropertyPrefix = 'cds';
2122

@@ -35,7 +36,7 @@ addParameters({
3536
// display in alphabetic order
3637
storySort: (a, b) => a[1].id.localeCompare(b[1].id),
3738
theme: {
38-
brandTitle: 'carbon components react',
39+
brandTitle: `Carbon Components React v${PackageInfo.version}`,
3940
brandUrl:
4041
'https://github.com/carbon-design-system/carbon/tree/master/packages/react',
4142
},

0 commit comments

Comments
 (0)