-
Notifications
You must be signed in to change notification settings - Fork 841
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[EuiFlexGrid] Remove
columns={0}
as an option
- Loading branch information
Showing
11 changed files
with
99 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import React from 'react'; | ||
|
||
import { EuiFlexGroup, EuiFlexItem } from '../../../../src/components'; | ||
|
||
export default () => ( | ||
<EuiFlexGroup alignItems="center"> | ||
<EuiFlexItem grow={false}> | ||
<p>I</p> | ||
<p>am</p> | ||
<p>a</p> | ||
<p>tall</p> | ||
<p>item</p> | ||
</EuiFlexItem> | ||
<EuiFlexItem>I am vertically centered!</EuiFlexItem> | ||
</EuiFlexGroup> | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import React from 'react'; | ||
|
||
import { | ||
EuiFlexItem, | ||
EuiFlexGroup, | ||
EuiPanel, | ||
EuiCode, | ||
EuiText, | ||
} from '../../../../src/components'; | ||
|
||
export default () => ( | ||
<EuiFlexGroup> | ||
<EuiFlexItem> | ||
<EuiText> | ||
<p> | ||
<EuiCode>FlexItem</EuiCode> | ||
</p> | ||
<p>A side nav might be in this one.</p> | ||
<p>And you would want the panel on the right to expand with it.</p> | ||
</EuiText> | ||
</EuiFlexItem> | ||
|
||
<EuiFlexItem> | ||
<EuiPanel> | ||
<strong>EuiPanel</strong> | ||
</EuiPanel> | ||
</EuiFlexItem> | ||
|
||
<EuiFlexItem> | ||
<EuiPanel grow={false}> | ||
Another <strong>EuiPanel</strong>, with{' '} | ||
<EuiCode>grow={false}</EuiCode>. | ||
</EuiPanel> | ||
</EuiFlexItem> | ||
</EuiFlexGroup> | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import React from 'react'; | ||
|
||
import { EuiFlexGroup, EuiFlexItem } from '../../../../src/components'; | ||
|
||
export default () => ( | ||
<EuiFlexGroup justifyContent="spaceAround"> | ||
<EuiFlexItem grow={false}>I’m a single centered item!</EuiFlexItem> | ||
</EuiFlexGroup> | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import React from 'react'; | ||
|
||
import { EuiFlexGroup, EuiFlexItem } from '../../../../src/components'; | ||
|
||
export default () => ( | ||
<EuiFlexGroup justifyContent="spaceBetween"> | ||
<EuiFlexItem grow={false}>One here on the left.</EuiFlexItem> | ||
<EuiFlexItem grow={false}>The other over here on the right.</EuiFlexItem> | ||
</EuiFlexGroup> | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import React from 'react'; | ||
|
||
import { EuiFlexGroup, EuiFlexItem } from '../../../../src/components'; | ||
|
||
export default () => ( | ||
<EuiFlexGroup justifyContent="spaceEvenly"> | ||
<EuiFlexItem grow={false}>Spaced evenly between this one.</EuiFlexItem> | ||
<EuiFlexItem grow={false}>And this one here on the right.</EuiFlexItem> | ||
</EuiFlexGroup> | ||
); |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters