-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
95 additions
and
23 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
```ts | ||
// Example.stories.ts | ||
|
||
import type { Meta } from '@storybook/angular'; | ||
|
||
import { Example } from './Example'; | ||
|
||
const meta: Meta<Example> = { | ||
component: Example, | ||
argTypes: { | ||
value: { type: 'number' }, | ||
}, | ||
}; | ||
|
||
export default meta; | ||
``` |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
```js | ||
// Example.stories.js|jsx | ||
|
||
import { Example } from './Example'; | ||
|
||
export default { | ||
component: Example, | ||
argTypes: { | ||
value: { type: 'number' }, | ||
}, | ||
}; | ||
``` |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
```ts | ||
// Example.stories.ts|tsx | ||
|
||
// Replace your-renderer with the renderer you are using (e.g., react, vue3, angular, etc.) | ||
import type { Meta } from '@storybook/your-renderer'; | ||
|
||
import { Example } from './Example'; | ||
|
||
const meta = { | ||
component: Example, | ||
argTypes: { | ||
value: { type: 'number' }, | ||
}, | ||
} satisfies Meta<typeof Example>; | ||
|
||
export default meta; | ||
``` |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
```ts | ||
// Example.stories.ts|tsx | ||
|
||
// Replace your-renderer with the renderer you are using (e.g., react, vue3, angular, etc.) | ||
import type { Meta } from '@storybook/your-renderer'; | ||
|
||
import { Example } from './Example'; | ||
|
||
const meta: Meta<typeof Example> = { | ||
component: Example, | ||
argTypes: { | ||
value: { type: 'number' }, | ||
}, | ||
}; | ||
|
||
export default meta; | ||
``` |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
```js | ||
// Example.stories.js | ||
|
||
export default { | ||
component: 'demo-example', | ||
argTypes: { | ||
value: { type: 'number' }, | ||
}, | ||
}; | ||
``` |
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
```ts | ||
// Example.stories.ts | ||
|
||
import type { Meta } from '@storybook/web-components'; | ||
|
||
const meta: Meta = { | ||
component: 'demo-example', | ||
argTypes: { | ||
value: { type: 'number' }, | ||
}, | ||
}; | ||
|
||
export default meta; | ||
``` |