@geist-ui/react-icons
v1.0.1
Published
React icon components for Geist UI.
Downloads
8,068
Readme
React Icons
React icon components for Geist UI.
Install
$ yarn add @geist-ui/react-icons
OR
$ npm install @geist-ui/react-icons
Usage
import React from 'react'
import { Code } from '@geist-ui/react-icons'
const App = () => {
return <Code />
}
export default App
Icons can be configured with color
, size
and any SVG props:
<Code color="red" size={36} />
<Code color="blue" strokeWidth={2} />
Other ways
- You can include the whole icon pack:
import * as Icons from '@geist-ui/react-icons'
const App = () => {
return <Icons.Code />
}
- You can include single icon:
import Code from '@geist-ui/react-icons/code'
const App = () => {
return <Code />
}