forked from philmtd/css-fx-layout
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample6.js
More file actions
28 lines (25 loc) · 735 Bytes
/
example6.js
File metadata and controls
28 lines (25 loc) · 735 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import React from 'react';
const attributesCode = `<div data-layout-xs="row"
data-layout-sm="column"
data-layout-md="row"
data-layout-lg="column"
data-layout-xl="row">
<span>One</span>
<span>Two</span>
<span>Three</span>
</div>`;
const classesCode = `<div class="fx-layout-row--xs
fx-layout-column--sm
fx-layout-row--md
fx-layout-column--lg
fx-layout-row--xl">
<span>One</span>
<span>Two</span>
<span>Three</span>
</div>`;
export default {
attributes: attributesCode,
classes: classesCode,
title: "6: Layout based on screen size",
description: "Alternating row/column layout based on the window size. Resize the window to see it change."
};