forked from wbinnssmith/react-user-avatar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.js
29 lines (27 loc) · 952 Bytes
/
test.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
import UserAvatar from './index';
import React from 'react';
import ReactDOM from 'react-dom';
document.body.innerHTML = `
<link rel="stylesheet" href="example.css"></link>
<style>
body {
font-family: -apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Oxygen","Ubuntu","Cantarell","Open Sans","Helvetica Neue",sans-serif;
}
.UserAvatar {
margin: 5px;
}
</style>
<div id="react-container"
style="margin: 200px auto;">
</div>
`
ReactDOM.render(
<div>
<UserAvatar size="48" name="Will Binns-Smith" />
<UserAvatar size="48" name="Will Binns-Smith" src="https://pbs.twimg.com/profile_images/429442426038538240/6Ac9kykG_400x400.jpeg" />
<UserAvatar size="48" name="John Doe" />
<UserAvatar size="48" name="[email protected]" />
<UserAvatar size="48" name="Jane Doe" color="#FFF" />
<UserAvatar size="48" name="Madonna" />
</div>
, document.getElementById('react-container'));