1
1
import React from 'react' ;
2
- import { Element , Collapsible , Text , Button , Stack } from '../.. ' ;
2
+ import { Element , Collapsible , Text , Button , Stack } from '..' ;
3
3
4
4
export default {
5
5
title : 'examples/SidebarConfig' ,
@@ -126,54 +126,52 @@ export const Basic = () => (
126
126
>
127
127
< Collapsible title = "Configuration Files" defaultOpen >
128
128
< Stack direction = "vertical" gap = { 6 } >
129
- < Element as = "div" css = { { paddingX : 2 } } >
129
+ < Element css = { { paddingX : 2 } } >
130
130
< Text as = "div" marginBottom = { 2 } >
131
131
Configuration your Sandbox
132
132
</ Text >
133
133
< Text variant = "muted" >
134
- Codesandbox supports serveral config giles per template, you van see
134
+ Codesandbox supports several config giles per template, you van see
135
135
and edit all supported files for the current sandbox here.
136
136
</ Text >
137
137
</ Element >
138
- < Element as = "div" css = { { paddingX : 2 } } >
139
- < Stack >
140
- < Element css = { { paddingRight : 2 } } marginBottom = { 2 } >
138
+ < Stack direction = "vertical" gap = { 4 } css = { { paddingX : 2 } } >
139
+ < Element >
140
+ < Stack gap = { 2 } marginBottom = { 2 } >
141
141
< NPMIcon />
142
- </ Element >
143
- < Text size = { 2 } > package.json </ Text >
144
- </ Stack >
145
- < Stack gap = { 4 } align = "flex-end" justify = "space-between ">
146
- < Text size = { 2 } variant = "muted" >
147
- Describes the overall configuration of your project.
148
- </ Text >
149
- < Button style = { { width : 100 } } variant = "secondary" >
150
- Edit
151
- </ Button >
152
- </ Stack >
153
- < Stack marginTop = { 4 } >
154
- < Element css = { { paddingRight : 2 } } marginBottom = { 2 } >
142
+ < Text size = { 2 } > package.json </ Text >
143
+ </ Stack >
144
+ < Stack gap = { 4 } align = "flex-end" justify = "space-between" >
145
+ < Text size = { 2 } variant = "muted ">
146
+ Describes the overall configuration of your project.
147
+ </ Text >
148
+ < Button style = { { width : 100 } } variant = "secondary" >
149
+ Edit
150
+ </ Button >
151
+ </ Stack >
152
+ </ Element >
153
+ < Element >
154
+ < Stack gap = { 2 } marginBottom = { 2 } >
155
155
< NPMIcon />
156
- </ Element >
157
- < Text size = { 2 } > sandbox.config.json </ Text >
158
- </ Stack >
159
- < Stack gap = { 4 } align = "flex-end" justify = "space-between ">
160
- < Text size = { 2 } variant = "muted" >
161
- Describes the overall configuration of your project.
162
- </ Text >
163
- < Button style = { { width : 100 } } variant = "secondary" >
164
- Edit
165
- </ Button >
166
- </ Stack >
167
- </ Element >
156
+ < Text size = { 2 } > sandbox.config.json </ Text >
157
+ </ Stack >
158
+ < Stack gap = { 4 } align = "flex-end" justify = "space-between" >
159
+ < Text size = { 2 } variant = "muted ">
160
+ Describes the overall configuration of your project.
161
+ </ Text >
162
+ < Button style = { { width : 100 } } variant = "secondary" >
163
+ Edit
164
+ </ Button >
165
+ </ Stack >
166
+ </ Element >
167
+ </ Stack >
168
168
</ Stack >
169
169
</ Collapsible >
170
170
< Collapsible title = "Other Configuration" >
171
- < Stack direction = "vertical" gap = { 6 } >
172
- < Element as = "div" css = { { paddingX : 2 } } >
173
- < Stack >
174
- < Element css = { { paddingRight : 2 } } marginBottom = { 2 } >
175
- < PrettierIcon />
176
- </ Element >
171
+ < Stack direction = "vertical" gap = { 4 } css = { { paddingX : 2 } } >
172
+ < Element >
173
+ < Stack gap = { 2 } marginBottom = { 2 } >
174
+ < PrettierIcon />
177
175
< Text size = { 2 } > .prettierc</ Text >
178
176
</ Stack >
179
177
< Stack gap = { 4 } align = "flex-end" justify = "space-between" >
@@ -184,10 +182,10 @@ export const Basic = () => (
184
182
Edit
185
183
</ Button >
186
184
</ Stack >
187
- < Stack marginTop = { 4 } >
188
- < Element css = { { paddingRight : 2 } } marginBottom = { 2 } >
189
- < NetlifyIcon / >
190
- </ Element >
185
+ </ Element >
186
+ < Element >
187
+ < Stack gap = { 2 } marginBottom = { 2 } >
188
+ < NetlifyIcon / >
191
189
< Text size = { 2 } > netlify.toml</ Text >
192
190
</ Stack >
193
191
< Stack gap = { 4 } align = "flex-end" justify = "space-between" >
@@ -198,10 +196,10 @@ export const Basic = () => (
198
196
Edit
199
197
</ Button >
200
198
</ Stack >
201
- < Stack marginTop = { 4 } >
202
- < Element css = { { paddingRight : 2 } } marginBottom = { 2 } >
203
- < ZeitIcon / >
204
- </ Element >
199
+ </ Element >
200
+ < Element >
201
+ < Stack gap = { 2 } marginBottom = { 2 } >
202
+ < ZeitIcon / >
205
203
< Text size = { 2 } > now.json</ Text >
206
204
</ Stack >
207
205
< Stack gap = { 4 } align = "flex-end" justify = "space-between" >
0 commit comments