forked from opensearch-project/oui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feat/props-ouiFlexItem' of https://github.com/BigSamu/oui…
… into clean/unused-packages
- Loading branch information
Showing
9 changed files
with
4,602 additions
and
17 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
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,43 @@ | ||
/* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* The OpenSearch Contributors require contributions made to | ||
* this file be licensed under the Apache-2.0 license or a | ||
* compatible open source license. | ||
* | ||
* Modifications Copyright OpenSearch Contributors. See | ||
* GitHub history for details. | ||
*/ | ||
|
||
import React from 'react'; | ||
|
||
import { OuiFlexGroup, OuiFlexItem } from '../../../../src/components/flex'; | ||
|
||
export default () => ( | ||
<div> | ||
<OuiFlexGroup> | ||
<OuiFlexItem basis={'auto'}> | ||
Auto | ||
<br /> | ||
Varies based on content size or width/height property | ||
</OuiFlexItem> | ||
<OuiFlexItem basis={'fit-content'}> | ||
Fit-content | ||
<br /> | ||
Sizes the item based on the content's width but within the | ||
container. | ||
</OuiFlexItem> | ||
<OuiFlexItem basis={'max-content'}> | ||
Max-content | ||
<br /> | ||
Sizes the item to be as large as the content's maximum width. | ||
</OuiFlexItem> | ||
<OuiFlexItem basis={'min-content'}> | ||
Min-content | ||
<br /> | ||
Sizes the item to be as small as the content's minimum width | ||
without breaking. | ||
</OuiFlexItem> | ||
</OuiFlexGroup> | ||
</div> | ||
); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
/* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* The OpenSearch Contributors require contributions made to | ||
* this file be licensed under the Apache-2.0 license or a | ||
* compatible open source license. | ||
* | ||
* Modifications Copyright OpenSearch Contributors. See | ||
* GitHub history for details. | ||
*/ | ||
|
||
import React from 'react'; | ||
|
||
import { OuiFlexGroup, OuiFlexItem } from '../../../../src/components/flex'; | ||
import { OuiSpacer } from '../../../../src/components/spacer'; | ||
|
||
export default () => ( | ||
<div> | ||
<OuiFlexGroup> | ||
<OuiFlexItem grow={false} shrink={1}> | ||
Extensive Text Extensive Text Extensive Text | ||
</OuiFlexItem> | ||
<OuiFlexItem grow={false} shrink={2}> | ||
Extensive Text Extensive Text Extensive Text | ||
</OuiFlexItem> | ||
<OuiFlexItem grow={false} shrink={4}> | ||
Extensive Text Extensive Text Extensive Text | ||
</OuiFlexItem> | ||
<OuiFlexItem grow={false} shrink={8}> | ||
Extensive Text Extensive Text Extensive Text | ||
</OuiFlexItem> | ||
</OuiFlexGroup> | ||
|
||
<OuiSpacer /> | ||
|
||
<OuiFlexGroup> | ||
<OuiFlexItem shrink={1} basis={'auto'}> | ||
Extensive Text Extensive Text Extensive Text | ||
</OuiFlexItem> | ||
<OuiFlexItem shrink={2} basis={'auto'}> | ||
Extensive Text Extensive Text Extensive Text | ||
</OuiFlexItem> | ||
<OuiFlexItem shrink={4} basis={'auto'}> | ||
Extensive Text Extensive Text Extensive Text | ||
</OuiFlexItem> | ||
<OuiFlexItem shrink={8} basis={'auto'}> | ||
Extensive Text Extensive Text Extensive Text | ||
</OuiFlexItem> | ||
</OuiFlexGroup> | ||
</div> | ||
); |
Oops, something went wrong.