Skip to content

Commit

Permalink
fix: Storybook 上で props のドキュメントが表示されない問題を修正 (#4719)
Browse files Browse the repository at this point in the history
  • Loading branch information
s-sasaki-0529 authored Jun 14, 2024
1 parent 46e4200 commit 7a634ae
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions packages/smarthr-ui/.storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ const config: StorybookConfig = {
docs: {
autodocs: true,
},
typescript: {
reactDocgen: 'react-docgen-typescript',
},
webpackFinal: async (config) => {
const resolve = config.resolve || {}
resolve.alias = {
Expand Down
3 changes: 2 additions & 1 deletion packages/smarthr-ui/.storybook/preview.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { ReactNode, useEffect } from 'react'
import { INITIAL_VIEWPORTS } from '@storybook/addon-viewport'
import { Title, Subtitle, Description, Primary, Stories } from '@storybook/blocks'
import { Title, Subtitle, Description, Primary, Stories, Controls } from '@storybook/blocks'
import ReactGA from 'react-ga4'

import { Preview } from '@storybook/react'
Expand Down Expand Up @@ -70,6 +70,7 @@ const preview: Preview = {
<Subtitle />
<Description />
<Primary />
<Controls />
<Stories includePrimary={false} />
</>
),
Expand Down

0 comments on commit 7a634ae

Please sign in to comment.