Skip to content

Commit 200ce11

Browse files
authored
Merge pull request #43 from primer/release-0.2.0-beta
Release 0.0.2-beta
2 parents 1847ef7 + 7d980df commit 200ce11

21 files changed

+535
-156
lines changed

docs/bundle.js

Lines changed: 17 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/index.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

examples/GitHubAvatar.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import React from 'react'
2+
import {Avatar} from '../src'
3+
4+
export default function GitHubAvatar({username, size = 20, ...rest}) {
5+
return (
6+
<Avatar
7+
src={`https://avatars.githubusercontent.com/${username}?v=3&s=${size * 2}`}
8+
size={size}
9+
{...rest}
10+
/>
11+
)
12+
}

examples/Swatch.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import React from 'react'
2+
import {Heading, Text} from '../src/'
3+
4+
export default function Swatch({name, index, color, ...rest}) {
5+
return (
6+
<div {...rest}>
7+
<div className='m-1 mt-3 p-6' style={{background: color}} />
8+
<Heading tag='h3' fontSize={2} px={1}>
9+
{name}.{index}
10+
</Heading>
11+
<Text px={1}>
12+
{color}
13+
</Text>
14+
</div>
15+
)
16+
}

0 commit comments

Comments
 (0)