Package Exports
- @metamist/heroicons-react
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@metamist/heroicons-react) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Heroicons React
Installation
yarn add heroicons-reactnpm install heroicons-reactUsage
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)
<Sparkles size={42} />You can also include the whole icon pack:
import React from "react";
import * as Icons from "heroicons-react";
const App = () => {
return <Icons.Sparkles />;
};
export default App;