Skip to content

Commit a7e2926

Browse files
committed
fix: set default size to Stack components
1 parent ac394eb commit a7e2926

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

packages/docs/src/catalog.tsx

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,11 @@ Catalog.register('HStack', {
5757
minWidth: {
5858
label: 'Min Width',
5959
type: 'number',
60-
default: 0,
6160
optional: true,
6261
},
6362
maxWidth: {
6463
label: 'Max Width',
6564
type: 'number',
66-
default: 1000,
6765
optional: true,
6866
},
6967
height: {
@@ -75,17 +73,17 @@ Catalog.register('HStack', {
7573
minHeight: {
7674
label: 'Min Height',
7775
type: 'number',
78-
default: 0,
7976
optional: true,
8077
},
8178
maxHeight: {
8279
label: 'Max Height',
8380
type: 'number',
84-
default: 1000,
8581
optional: true,
8682
},
8783
},
88-
optional: true,
84+
default: {
85+
height: 100,
86+
},
8987
},
9088
padding: {
9189
label: 'Padding',
@@ -203,13 +201,11 @@ Catalog.register('VStack', {
203201
minWidth: {
204202
label: 'Min Width',
205203
type: 'number',
206-
default: 0,
207204
optional: true,
208205
},
209206
maxWidth: {
210207
label: 'Max Width',
211208
type: 'number',
212-
default: 1000,
213209
optional: true,
214210
},
215211
height: {
@@ -221,17 +217,17 @@ Catalog.register('VStack', {
221217
minHeight: {
222218
label: 'Min Height',
223219
type: 'number',
224-
default: 0,
225220
optional: true,
226221
},
227222
maxHeight: {
228223
label: 'Max Height',
229224
type: 'number',
230-
default: 1000,
231225
optional: true,
232226
},
233227
},
234-
optional: true,
228+
default: {
229+
height: 100,
230+
},
235231
},
236232
padding: {
237233
label: 'Padding',

0 commit comments

Comments
 (0)