Socket
Socket
Sign inDemoInstall

@highlight-ui/icon

Package Overview
Dependencies
7
Maintainers
10
Versions
128
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @highlight-ui/icon

This is the Icon package used in Personio


Version published
Weekly downloads
3.9K
increased by32.38%
Maintainers
10
Created
Weekly downloads
 

Readme

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

Last updated on 06 Dec 2023

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc