@@ -3,7 +3,7 @@ import { Box } from '@components/Layout/Box';
3
3
import type { Meta , StoryObj } from '@storybook/react' ;
4
4
import { vars } from '@theme/vars.css' ;
5
5
import React from 'react' ;
6
- import { containerClass , itemClass } from '../stories.css' ;
6
+ import { componentClass , containerClass , itemClass } from '../stories.css' ;
7
7
8
8
const spaceOptions : ( keyof typeof vars . sizes | undefined ) [ ] = [
9
9
undefined ,
@@ -17,6 +17,7 @@ const dimensionOptions: string[] = ['100%', 'min-content', 'max-content'];
17
17
18
18
const meta : Meta < IBoxProps > = {
19
19
title : 'Layout/Box' ,
20
+ component : Box ,
20
21
parameters : {
21
22
docs : {
22
23
description : {
@@ -27,6 +28,13 @@ const meta: Meta<IBoxProps> = {
27
28
} ,
28
29
} ,
29
30
argTypes : {
31
+ overflow : {
32
+ options : [ 'hidden' , 'visible' , 'scroll' , 'auto' ] ,
33
+ control : {
34
+ type : 'select' ,
35
+ } ,
36
+ description : 'Overflow css property.' ,
37
+ } ,
30
38
width : {
31
39
options : [ ...spaceOptions , ...dimensionOptions , ...contentWidthOptions ] ,
32
40
control : {
@@ -218,7 +226,7 @@ export const Primary: Story = {
218
226
marginBottom,
219
227
marginLeft,
220
228
marginRight,
221
- padding = '$6' ,
229
+ padding,
222
230
paddingX,
223
231
paddingY,
224
232
paddingTop,
@@ -231,6 +239,7 @@ export const Primary: Story = {
231
239
height,
232
240
minHeight,
233
241
maxHeight,
242
+ overflow,
234
243
} ) => (
235
244
< div className = { containerClass } >
236
245
< Box
@@ -254,9 +263,10 @@ export const Primary: Story = {
254
263
height = { height }
255
264
minHeight = { minHeight }
256
265
maxHeight = { maxHeight }
257
- className = { itemClass }
266
+ overflow = { overflow }
267
+ className = { componentClass }
258
268
>
259
- Box Content
269
+ < div className = { itemClass } > Box Content</ div >
260
270
</ Box >
261
271
</ div >
262
272
) ,
0 commit comments