Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pcln-icons

Package Overview
Dependencies
Maintainers
0
Versions
147
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pcln-icons

Priceline React icons based on Material Design Icons

  • 6.6.0
  • npm
  • Socket score

Version published
Weekly downloads
1.6K
increased by12.47%
Maintainers
0
Weekly downloads
 
Created
Source

pcln-icons

Priceline React icons based on Material Design Icons

npm i pcln-icons

Usage

import React from 'react'
import { Flights as FlightsIcon } from 'pcln-icons'

export default (props) => <FlightsIcon mr={2} />

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 optimal approach is to use named imports from pcln-icons. If you need an <Icon> component that supports a name prop, you can use:

import React from 'react'
import { Icon } from 'pcln-icons'

export default (props) => <Icon name={iconName} mr={2} />

Note: Exports from pcln-icons rely on values from theme, so they must be descendents of <ThemeProvider> in order to work properly. Otherwise, you might experience errors like this:

Uncaught TypeError: Cannot read property '3' of undefined

Development

Custom icon SVGs are included in the svg/ directory.

To build the icons locally, run:

rushx build

Run tests:

npm test

Directory Structure

svg/        Source for custom SVG icons
src/        Source for wrapper Icon component
components/ React components for icons
test/       Unit tests

FAQs

Package last updated on 05 Sep 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc