@amsterdam/design-system-react-icons
v0.1.13
Published
All icons from the Amsterdam Design System as React components. Use it to use the correct icons in your React project.
Downloads
4,240
Readme
Amsterdam Design System: React icons
This package provides all icons from the Amsterdam Design System as React components. Use it to use the correct icons in your React project.
Installation
Install this package by itself if you want or need to use icons directly in your React project.
Note that our React components contain an Icon component that offers a convenient API for using the icons and streamlines alignment with text.
npm install @amsterdam/design-system-react-icons
Usage
Import the component for the icon you need, as well as the generic Icon component, and use them in your JSX.
import { Icon } from '@amsterdam/design-system-react'
import { SearchIcon } from '@amsterdam/design-system-react-icons'
export const App = () => (
<Icon svg={SearchIcon} />
)
Updating
When updating to a new release of this package, check the change log for breaking changes. If there are any, update your application accordingly.
Support
Contact us if you have a question, find an issue, or want to contribute. Find ways to reach us on designsystem.amsterdam.