Skip to content

Commit

Permalink
update(docs): imported docs to display in storybook
Browse files Browse the repository at this point in the history
  • Loading branch information
lavanya-bmw committed Jun 20, 2024
1 parent d053978 commit 55e90d4
Show file tree
Hide file tree
Showing 4 changed files with 244 additions and 30 deletions.
1 change: 1 addition & 0 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,6 @@ const config: StorybookConfig = {
docs: {
autodocs: 'tag',
},
staticDirs: ['../docs'],
}
export default config
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@catena-x/portal-shared-components",
"version": "3.0.23",
"version": "3.0.24",
"description": "Catena-X Portal Shared Components",
"author": "Catena-X Contributors",
"license": "Apache-2.0",
Expand Down Expand Up @@ -62,6 +62,7 @@
"@storybook/addon-links": "^8.0.2",
"@storybook/addon-onboarding": "^8.0.2",
"@storybook/blocks": "^8.0.2",
"@storybook/builder-vite": "^8.1.10",
"@storybook/react": "^8.0.2",
"@storybook/react-vite": "^8.0.2",
"@storybook/test": "^8.0.2",
Expand Down
6 changes: 6 additions & 0 deletions src/components/basic/Button/BackButton.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import { ComponentStory } from '@storybook/react'

import { BackButton as Component } from './BackButton'
import button from '../../../../docs/storybook/button.md?raw'

export default {
title: 'Buttons',
Expand All @@ -31,6 +32,11 @@ export default {
action: 'onClick',
},
},
parameters: {
docs: {
description: { component: button },
},
},
}

const Template: ComponentStory<typeof Component> = (args: any) => (
Expand Down
Loading

0 comments on commit 55e90d4

Please sign in to comment.