Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: SVG props #20

Merged
merged 2 commits into from
Oct 28, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
docs: update readme
  • Loading branch information
ofekashery committed Oct 28, 2020
commit 5e23b9f4b4111f918006f9cff53c4da1f5a8ed7d
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ $ npm install @geist-ui/react-icons

```tsx
import React from 'react'
import { GitHub } from '@geist-ui/react-icons'
import { Code } from '@geist-ui/react-icons'

const App = () => {
return <GitHub />
return <Code />
}

export default App
Expand All @@ -29,8 +29,8 @@ export default App
Icons can be configured with `color`, `size` and any SVG props:

```ts
<GitHub color="red" size={36} />
<GitHub color="blue" strokeWidth={2} />
<Code color="red" size={36} />
<Code color="blue" strokeWidth={2} />
```

## Other ways
Expand All @@ -41,17 +41,17 @@ Icons can be configured with `color`, `size` and any SVG props:
import * as Icons from '@geist-ui/react-icons'

const App = () => {
return <Icons.GitHub />
return <Icons.Code />
}
```

2. You can include single icon:

```tsx
import Activity from '@geist-ui/react-icons/activity'
import Code from '@geist-ui/react-icons/code'

const App = () => {
return <Activity />
return <Code />
}
```

Expand Down