We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db010c3 commit 69312afCopy full SHA for 69312af
src/components/Greeting/Greeting.stories.tsx
@@ -1,14 +1,15 @@
1
-import { Component as Greeting } from './Greeting'
+import { Meta, Story } from '@storybook/react'
2
+import { Component as Greeting, Props } from './Greeting'
3
4
export default {
5
title: 'components/Greeting',
6
component: Greeting,
7
argTypes: {
8
target: { control: 'text' },
9
},
-}
10
+} as Meta<Props>
11
-const Template = (args) => <Greeting {...args} />
12
+const Template: Story<Props> = (args) => <Greeting {...args} />
13
14
export const World = Template.bind({})
15
World.args = {
src/components/Greeting/Greeting.tsx
@@ -1,6 +1,6 @@
import React from 'react'
-type Props = {
+export type Props = {
target: string
}
0 commit comments