File tree 1 file changed +14
-11
lines changed
site/src/components/Margins 1 file changed +14
-11
lines changed Original file line number Diff line number Diff line change 1
- import { ComponentMeta , Story } from "@storybook/react" ;
1
+ import type { Meta , StoryObj } from "@storybook/react" ;
2
2
import { Margins } from "./Margins" ;
3
3
4
- export default {
4
+ const meta : Meta < typeof Margins > = {
5
5
title : "components/Margins" ,
6
6
component : Margins ,
7
- } as ComponentMeta < typeof Margins > ;
7
+ } ;
8
8
9
- const Template : Story = ( args ) => (
10
- < Margins { ...args } >
11
- < div style = { { width : "100%" , background : "black" } } >
12
- Here is some content that will not get too wide!
13
- </ div >
14
- </ Margins >
15
- ) ;
9
+ export default meta ;
10
+ type Story = StoryObj < typeof Margins > ;
16
11
17
- export const Example = Template . bind ( { } ) ;
12
+ export const Example : Story = {
13
+ args : {
14
+ children : (
15
+ < div style = { { width : "100%" , background : "black" } } >
16
+ Here is some content that will not get too wide!
17
+ </ div >
18
+ ) ,
19
+ } ,
20
+ } ;
You can’t perform that action at this time.
0 commit comments