-
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.
Add paddingSize prop to EuiCard and display example to docs (#3638)
* adding paddingSize to EuiCard and display example * cl * add more examples * pr feedback * make card with image work when paddingSize is none * removed margins from loop * broken test * sizes ts * cl again Co-authored-by: Greg Thompson <[email protected]>
- Loading branch information
1 parent
75892ae
commit 64b63c5
Showing
9 changed files
with
305 additions
and
55 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
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,48 @@ | ||
import React from 'react'; | ||
|
||
import { | ||
EuiCard, | ||
EuiFlexGroup, | ||
EuiFlexItem, | ||
EuiIcon, | ||
EuiSpacer, | ||
} from '../../../../src/components'; | ||
|
||
export default () => ( | ||
<div> | ||
<EuiSpacer size="s" /> | ||
<EuiFlexGroup gutterSize="l"> | ||
<EuiFlexItem> | ||
<EuiCard | ||
layout="horizontal" | ||
icon={<EuiIcon size="xl" type="logoLogging" />} | ||
onClick={() => {}} | ||
title="Logs" | ||
display="plain" | ||
description="The Elastic Stack is the most popular open source logging platform." | ||
/> | ||
</EuiFlexItem> | ||
<EuiFlexItem> | ||
<EuiCard | ||
icon={<EuiIcon size="xl" type="logoLogging" />} | ||
title="Logs" | ||
display="plain" | ||
description="The Elastic Stack is the most popular open source logging platform." | ||
onClick={() => {}} | ||
/> | ||
</EuiFlexItem> | ||
<EuiFlexItem> | ||
<EuiCard | ||
layout="horizontal" | ||
icon={<EuiIcon size="xl" type="logoLogging" />} | ||
title="Logs" | ||
display="plain" | ||
description="The Elastic Stack is the most popular open source logging platform." | ||
betaBadgeLabel="Beta" | ||
betaBadgeTooltipContent="This module is not GA. Please help us by reporting any bugs." | ||
onClick={() => {}} | ||
/> | ||
</EuiFlexItem> | ||
</EuiFlexGroup> | ||
</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
Oops, something went wrong.