Using React Toolbox for Material Design UI - The Right Way

import theme from ‘./assets/react-toolbox/theme’;
import ThemeProvider from ‘react-toolbox/lib/ThemeProvider’;
import Card from ‘react-toolbox/lib/card/Card.js’;
<ThemeProvider theme={theme}>
<Card className=’experts’>
<CardTitle title={expertUSer.Name}
subtitle={expertUSer.Designation}/>
<CardText>{expertUSer.Country}</CardText>
</Card>
</ThemeProvider>
import CardTitle from ‘react-toolbox/lib/card/CardTitle’;
import CardMedia from ‘react-toolbox/lib/card/CardMedia’;
.experts{
display: inline-block;
width: 45%;
justify-content: center;
margin: 0.5em;
padding: 0.3em;
}
Default card
<CardTitle 
title={expertUSer.name}
subtitle={expertUSer.designation}
theme={{cardTitle:’cardTitle’,subtitle:’subtitle’}}/>
.cardTitle .title{
color: red;
}
.cardTitle.subtitle{
color:blue;
}

Another woman in Tech

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store