File tree Expand file tree Collapse file tree 1 file changed +6
-30
lines changed
src/components/content/Layout Expand file tree Collapse file tree 1 file changed +6
-30
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import { useState } from 'react';
33import { Button , ItemButton } from '../../actions' ;
44import { Block } from '../../Block' ;
55import { Space } from '../../layout/Space' ;
6+ import { Card } from '../Card/Card' ;
67import { Text } from '../Text' ;
78import { Title } from '../Title' ;
89
@@ -247,39 +248,14 @@ export const GridLayoutExample: Story = {
247248 < GridLayout
248249 height = "100dvh"
249250 columns = "repeat(2, 1fr)"
250- rows = "auto 1fr"
251+ rows = "auto auto 1fr"
251252 gap = "2x"
252253 padding = "2x"
253254 >
254- < Layout . Header title = "Grid Dashboard" />
255- < div
256- style = { {
257- gridColumn : '1 / 3' ,
258- background : '#f5f5f5' ,
259- padding : '16px' ,
260- borderRadius : '8px' ,
261- } }
262- >
263- < Text > Full-width card</ Text >
264- </ div >
265- < div
266- style = { {
267- background : '#f5f5f5' ,
268- padding : '16px' ,
269- borderRadius : '8px' ,
270- } }
271- >
272- < Text > Left card</ Text >
273- </ div >
274- < div
275- style = { {
276- background : '#f5f5f5' ,
277- padding : '16px' ,
278- borderRadius : '8px' ,
279- } }
280- >
281- < Text > Right card</ Text >
282- </ div >
255+ < Layout . Header gridColumn = "1 / 3" title = "Grid Dashboard" />
256+ < Card gridColumn = "1 / 3" > Full-width card</ Card >
257+ < Card > Left card</ Card >
258+ < Card > Right card</ Card >
283259 </ GridLayout >
284260 ) ,
285261} ;
You can’t perform that action at this time.
0 commit comments