File tree 2 files changed +25
-1
lines changed 2 files changed +25
-1
lines changed Original file line number Diff line number Diff line change @@ -14,10 +14,11 @@ const meta: Meta<typeof OverflowY> = {
14
14
children : numbers . map ( ( num , i ) => (
15
15
< p
16
16
key = { num }
17
- style = { {
17
+ css = { {
18
18
height : "50px" ,
19
19
padding : 0 ,
20
20
margin : 0 ,
21
+ color : "black" ,
21
22
backgroundColor : i % 2 === 0 ? "white" : "gray" ,
22
23
} }
23
24
>
Original file line number Diff line number Diff line change
1
+ import { Meta , StoryObj } from "@storybook/react" ;
2
+ import { PopoverContainer } from "./PopoverContainer" ;
3
+ import Button from "@mui/material/Button" ;
4
+
5
+ const numbers : number [ ] = [ ] ;
6
+ for ( let i = 0 ; i < 20 ; i ++ ) {
7
+ numbers . push ( i + 1 ) ;
8
+ }
9
+
10
+ const meta : Meta < typeof PopoverContainer > = {
11
+ title : "components/PopoverContainer" ,
12
+ component : PopoverContainer ,
13
+ args : {
14
+ anchorButton : < Button > I have no hooks/refs</ Button > ,
15
+ children : < p > Hiya!</ p > ,
16
+ originY : "bottom" ,
17
+ } ,
18
+ } ;
19
+
20
+ export default meta ;
21
+
22
+ type Story = StoryObj < typeof PopoverContainer > ;
23
+ export const Example : Story = { } ;
You can’t perform that action at this time.
0 commit comments