Skip to content

Commit

Permalink
Merge pull request #434 from pixiv/mimo/csf3-react-clickable
Browse files Browse the repository at this point in the history
/reactのStorybook CSF3化 clickable編
  • Loading branch information
toshusai authored Jan 19, 2024
2 parents 82da369 + 2e07853 commit 3649014
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions packages/react/src/components/Clickable/index.story.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
import { action } from '@storybook/addon-actions'
import Clickable from '.'
import { Meta, StoryObj } from '@storybook/react'

export default {
title: 'Clickable',
component: Clickable,
}
} as Meta<typeof Clickable>

export const Button = () => (
<Clickable onClick={action('click')}>button</Clickable>
)
export const Button: StoryObj = {
render: () => <Clickable onClick={action('click')}>button</Clickable>,
}

export const Link = () => (
<Clickable to="#" onClick={action('click')}>
link
</Clickable>
)
export const Link: StoryObj = {
render: () => (
<Clickable to="#" onClick={action('click')}>
link
</Clickable>
),
}

0 comments on commit 3649014

Please sign in to comment.