forked from philmtd/css-fx-layout
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample2.js
More file actions
26 lines (23 loc) · 690 Bytes
/
example2.js
File metadata and controls
26 lines (23 loc) · 690 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
import React from 'react';
const attributesCode = `<div data-layout="row reverse"
data-layout-align="start center"
data-layout-gap="4px">
<span>One</span>
<span>Two</span>
<span>Three</span>
</div>`;
const classesCode = `<div class="fx-layout-row
fx-layout-reverse
fx-align--start-x
fx-align--x-center
fx-gap--4px">
<span>One</span>
<span>Two</span>
<span>Three</span>
</div>`;
export default {
attributes: attributesCode,
classes: classesCode,
title: "2: Reversed row with alignment and gaps",
description: "This example renders a flex row in reversed order with align properties set and a gap of 4px."
};