March 2019
Intermediate to advanced
534 pages
14h 52m
English
Let's say that you're using a Card component to display a contact. In addition to showing information about the contact, you would like for your users to be able to take actions on contacts from within the card. For example, you could provide two actions—one to message the contact, and one to phone the contact. Here's the code to do this:
import React from 'react';import { withStyles } from '@material-ui/core/styles';import Card from '@material-ui/core/Card';import CardHeader from '@material-ui/core/CardHeader';import CardContent from '@material-ui/core/CardContent';import CardActions from '@material-ui/core/CardActions';import Typography from '@material-ui/core/Typography';import Avatar from '@material-ui/core/Avatar';import ...Read now
Unlock full access