Skip to content

Commit

Permalink
feat(react): clickable story updated csf2 to csf3
Browse files Browse the repository at this point in the history
  • Loading branch information
mimokmt committed Dec 22, 2023
1 parent d95aeef commit 967be64
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 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 { StoryObj } from '@storybook/react'

export default {
title: 'Clickable',
component: 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 967be64

Please sign in to comment.