-
Notifications
You must be signed in to change notification settings - Fork 1
/
MaterialComponentList.js
43 lines (39 loc) · 1.26 KB
/
MaterialComponentList.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import React from "react";
import PropTypes from "prop-types";
import TextField from '@material-ui/core/TextField';
import Button from '@material-ui/core/Button';
import AppBar from '@material-ui/core/AppBar';
import IconButton from '@material-ui/core/IconButton';
import Toolbar from '@material-ui/core/Toolbar';
import MenuIcon from '@material-ui/icons/Menu';
import Typography from '@material-ui/core/Typography';
class MaterialComponentList extends React.Component {
render() {
return (
<React.Fragment>
{/* Material App Bar */}
<AppBar position="static">
<Toolbar>
<IconButton color="inherit" aria-label="Menu">
<MenuIcon />
</IconButton>
<Typography variant="title" color="inherit" style={{flex: 1}}>
Title
</Typography>
<Button color="inherit">Login</Button>
</Toolbar>
</AppBar>
{/* Material TextField */}
<TextField
id="name"
label="Type here..."
/>
{/* Material Button */}
<Button variant="raised" color="primary" style={{ marginLeft: 10 }}>
Material button
</Button>
</React.Fragment>
);
}
}
export default MaterialComponentList;