-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0809264
commit c698892
Showing
2 changed files
with
26 additions
and
1 deletion.
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
21 changes: 21 additions & 0 deletions
21
examples/wrapper-components/react-javascript/src/components/Card/Card.js
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,21 @@ | ||
import React from 'react'; | ||
import { IfxCard, IfxCardHeadline, IfxButton, IfxCardOverline, IfxCardText, IfxCardImage, IfxCardLinks } from '@infineon/infineon-design-system-react'; | ||
|
||
function Card() { | ||
return ( | ||
<IfxCard href="http://google.com" target="_blank" direction="vertical"> | ||
<IfxCardImage position="right" src="https://upload.wikimedia.org/wikipedia/commons/e/e4/Latte_and_dark_coffee.jpg" alt="" slot="img"></IfxCardImage> | ||
<IfxCardOverline>Overline</IfxCardOverline> | ||
<IfxCardHeadline>Headline</IfxCardHeadline> | ||
<IfxCardText> | ||
Some quick example text to build on the card title and make up the bulk of the card's content | ||
</IfxCardText> | ||
<IfxCardLinks slot="buttons"> | ||
<IfxButton color='primary'>Button</IfxButton> | ||
<IfxButton color='primary'>Button</IfxButton> | ||
</IfxCardLinks> | ||
</IfxCard> | ||
); | ||
} | ||
|
||
export default Card; |