@metamist/heroicons-react
Version:
React components for heroicons
51 lines (34 loc) • 857 B
Markdown
## Heroicons React
[](https://www.npmjs.com/package/heroicons-react)
[](https://www.npmjs.com/package/heroicons-react)
### Installation
```sh
yarn add heroicons-react
```
```sh
npm install heroicons-react
```
### Usage
```javascript
import React from "react";
import { Sparkles } from "heroicons-react";
const App = () => {
return <Sparkles />;
};
export default App;
```
Icons can be sized - based on height (default: 24)
```javascript
<Sparkles size={42} />
```
You can also include the whole icon pack:
```javascript
import React from "react";
import * as Icons from "heroicons-react";
const App = () => {
return <Icons.Sparkles />;
};
export default App;
```
### Available Icons
https://heroicons.com/