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

@pikas-ui/icons

Package Overview
Dependencies
Maintainers
1
Versions
104
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pikas-ui/icons

This package contains a icon components.

  • 2.0.4
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
52
increased by40.54%
Maintainers
1
Weekly downloads
 
Created
Source

@pikas-ui/icons

This package contains a icon components.

This library is based on Iconify.

Getting Started

You need to install the @pikas-ui/styles package to use this package.

Installation

With npm:

npm install @pikas-ui/icons

With yarn:

yarn add @pikas-ui/icons

With pnpm:

pnpm add @pikas-ui/icons

Usage

CustomIcon

import { CustomIcon } from `@pikas-ui/icons`;

const Example: React.FC = () => {
  return (
    <CustomIcon size={40} color="PRIMARY">
      <svg
        xmlns="http://www.w3.org/2000/svg"
        width={24}
        height={24}
        viewBox="0 0 24 24"
      >
        <path d="M15.16 2a1 1 0 0 0-.66.13l-12 7a.64.64 0 0 0-.13.1l-.1.08a1.17 1.17 0 0 0-.17.26.84.84 0 0 0-.1.43v10a1 1 0 0 0 1 1h18a1 1 0 0 0 1-1V10a8.08 8.08 0 0 0-6.84-8zm0 2.05A6.07 6.07 0 0 1 19.93 9H6.7zM20 19H4v-8h16z" />
        <circle cx={6.5} cy={16.5} r={1.5} />
        <circle cx={11.5} cy={13.5} r={1.5} />
        <circle cx={17} cy={16} r={2} />
      </svg>
    </CustomIcon>
  )
}
Props
PropDescriptionTypeDefault
classNameThe class name of the icon.string-
sizeThe size of the icon.number-
colorThe color of the icon.ColorsType-
colorHexThe color of the icon.string-
onClickThe callback when the icon is clicked.(e: React.MouseEvent<HTMLDivElement>) => void-

IconByName

import { IconByName } from `@pikas-ui/icons`;

const Example: React.FC = () => {
  return <IconByName size={40} name="bx:baguette" color="PRIMARY" />
}
Props
PropDescriptionTypeDefault
nameThe name of the icon.string-
classNameThe class name of the icon.string-
sizeThe size of the icon.number-
colorThe color of the icon.ColorsType-
colorHexThe color of the icon.string-
onClickThe callback when the icon is clicked.(e: React.MouseEvent<HTMLDivElement>) => void-

Change Log

You can find the change log here.

FAQs

Package last updated on 20 Jun 2022

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