Priceline React icons based on Material Design Icons
Priceline React icons based on Material Design Icons
``sh`
npm i pcln-icons
`js
import React from 'react'
import { Flights as FlightsIcon } from 'pcln-icons'
export default (props) =>
`
For a complete list of all icons, see: the iconography docs
BREAKING CHANGE: The Icon component has been removed from core (pcln-design-system) in v3.0.0. The optimalpcln-icons
approach is to use named imports from . If you need an component that supports a name
prop, you can use:
`js
import React from 'react'
import { Icon } from 'pcln-icons'
export default (props) =>
`
_Note: Exports from pcln-icons rely on values from theme, so they must be descendents of in order to work properly. Otherwise, you might experience errors like this:_
``
Uncaught TypeError: Cannot read property '3' of undefined
Custom icon SVGs are included in the svg/ directory.
To build the icons locally, run:
`sh`
rushx build
Run tests:
`sh`
npm test
`sh``
svg/ Source for custom SVG icons
src/ Source for wrapper Icon component
components/ React components for icons
test/ Unit tests