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

@highlight-ui/icon

Package Overview
Dependencies
Maintainers
10
Versions
129
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@highlight-ui/icon

This is the Icon package used in Personio

  • 5.1.3
  • npm
  • Socket score

Version published
Weekly downloads
1.8K
decreased by-24.28%
Maintainers
10
Weekly downloads
 
Created
Source

npm personio.design storybook.personio.design

@highlight-ui/icon

Installation

Using npm:

npm install @highlight-ui/icon

Using yarn:

yarn add @highlight-ui/icon

Using pnpm:

pnpm install @highlight-ui/icon

In order to use font-awesome, it is necessary to include per your usage! It is not shipped in this package.

In your (S)CSS file:

@import url('@highlight-ui/icon');

Once the package is installed, you can import the library:

import { Icon } from '@highlight-ui/icon';

Usage

import React, { useState } from 'react';
import { Icon } from '@highlight-ui/icon';

export default function IconExample() {
  return <Icon name="map" color="icon-critical" type="light" />;
}

Props 📜

PropTypeRequiredDefaultDescription
namestringYesSpecify a name of the icon
colorIconColorTokenNoSpecify a color of the icon
sizenumberNo14Specify the size of the icon
spinbooleanNofalseSpecifies whether the icon will be spinning (using CSS animation) or not
type'regular', 'light', 'solid'NoregularSpecify a font family for the icon
blockbooleanNofalseMakes the component behave as a block element (take up the whole available space)
aria-hiddenReact.AriaAttributes['aria-hidden']NoIndicates whether the element is exposed to an accessibility API

Custom types 🔠

TypeValuesDescription
IconColorToken"Icon" and "Icon On" color token names

Contributing 🖌️

Please visit personio.design for usage guidelines and visual examples.

If you're interested in contributing, please visit our contribution page.

FAQs

Package last updated on 24 Jul 2023

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