Skip to content

Instantly share code, notes, and snippets.

@vivek12345
Last active October 18, 2017 20:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vivek12345/8686f3036bf68b02c128787784e1545d to your computer and use it in GitHub Desktop.
Save vivek12345/8686f3036bf68b02c128787784e1545d to your computer and use it in GitHub Desktop.
import React from 'react';
import { Card, CardMedia, CardTitle, CardText } from 'react-toolbox/lib/card';
const style = {
width: '350px',
marginLeft: '20px',
marginTop: '20px',
display: 'inline-block'
};
const Product = (props) => (
<Card style={style}>
<CardMedia
aspectRatio="wide"
image={props.product.imageUrl}
/>
<CardTitle
title={props.product.name.toUpperCase()}
subtitle="Subtitle here"
/>
<CardText>{props.product.price}</CardText>
</Card>
);
export default Product;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment