-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from imaimai17468/fix/imaimai/storybook-bug
storybookのバグ修正
- Loading branch information
Showing
6 changed files
with
2,355 additions
and
5,489 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 23 additions & 10 deletions
33
src/components/AudioVisualizer/AudioVisualizer.stories.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,31 @@ | ||
import React from 'react' | ||
import { ComponentStory, ComponentMeta } from '@storybook/react' | ||
import { Meta, StoryObj } from '@storybook/react' | ||
import AudioVisualizer from './AudioVisualizer' | ||
import styles from './AudioVisualizer.module.css' | ||
|
||
export default { | ||
title: 'components/AudioVisualizer', | ||
const meta: Meta<typeof AudioVisualizer> = { | ||
title: 'common/AudioVisualizer', | ||
component: AudioVisualizer, | ||
tags: ['autodocs'], | ||
argTypes: {}, | ||
} as ComponentMeta<typeof AudioVisualizer> | ||
} | ||
export default meta | ||
type Story = StoryObj<typeof AudioVisualizer> | ||
|
||
const Template: ComponentStory<typeof AudioVisualizer> = () => ( | ||
<div className={styles['story-container']}> | ||
<AudioVisualizer /> | ||
</div> | ||
) | ||
export const Default: Story = { | ||
args: {}, | ||
render: () => ( | ||
<div className={styles['story-container-full']}> | ||
<AudioVisualizer /> | ||
</div> | ||
), | ||
} | ||
|
||
export const Default = Template.bind({}) | ||
export const FixedWidth: Story = { | ||
args: {}, | ||
render: () => ( | ||
<div className={styles['story-container']}> | ||
<AudioVisualizer /> | ||
</div> | ||
), | ||
} |
Oops, something went wrong.