Skip to content

Commit

Permalink
Readme update
Browse files Browse the repository at this point in the history
  • Loading branch information
xander-marjoram committed Mar 27, 2024
1 parent bffc750 commit 2fab121
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/tools/pie-icons-react/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@ export default function App() {
}
```

You can also import icons individually from the dist folder. Consider doing this if you are having issues with tree-shaking or the size of the icons in your bundle.

```js
import IconAlertTriangleLarge from '@justeattakeaway/pie-icons-react/dist/IconAlertTriangleLarge';
import IconCalendar from '@justeattakeaway/pie-icons-react/dist/IconCalendar';
```

#### Props

Icons accept any standard attribute, except for `width` and `height` since those are set implicitly by using the `size` prop.
Expand Down

0 comments on commit 2fab121

Please sign in to comment.