react-toolbox/spec/components/avatar.js

20 lines
776 B
JavaScript
Raw Normal View History

2015-11-26 03:53:42 +03:00
import React from 'react';
import Avatar from '../../components/avatar';
import GithubIcon from './github_icon';
const AvatarTest = () => (
<section>
<h5>Avatars</h5>
2015-11-28 00:09:18 +03:00
<p>Provide an image source or object, a font icon, children or a title to use its first letter.</p>
<Avatar style={{backgroundColor: 'deepskyblue'}} icon="folder" />
<Avatar icon={<GithubIcon />}/>
<Avatar><img src="https://placeimg.com/80/80/animals"/></Avatar>
2016-07-10 15:23:40 +03:00
<Avatar image="https://placeimg.com/80/80/animals" />
<Avatar image="http://www.thewrap.com/wp-content/uploads/2015/08/margot-robbie-harley-quinn_main.jpg" cover />
2016-07-04 23:03:57 +03:00
<Avatar title="Javier"/>
2015-11-28 00:09:18 +03:00
<Avatar style={{backgroundColor: 'yellowgreen'}}><GithubIcon /></Avatar>
2015-11-26 03:53:42 +03:00
</section>
);
export default AvatarTest;