New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@yandex/ui-icons

Package Overview
Dependencies
Maintainers
8
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@yandex/ui-icons

![image](https://user-images.githubusercontent.com/7934638/127772507-688a220a-c733-47ae-af56-12319c47ce41.png)

0.0.1-alpha.1
latest
Source
npm
Version published
Weekly downloads
95
-29.63%
Maintainers
8
Weekly downloads
 
Created
Source

@yandex/ui-icons (WIP)

image

npm

Installation

npm i -PE @yandex/ui-icons

Usage (jsx)

Simple

import { Search } from '@yandex/ui-icons'

export const App = () => {
  return <Search />
}

Set size

Now available next sizes: 12, 16, 24, 32 (default 24).

import { Search } from '@yandex/ui-icons'

export const App = () => {
  return <Search size={12} />
}

Get ref

import { useRef } from 'react'
import { Search } from '@yandex/ui-icons'

export const App = () => {
  const iconRef = useRef<SVGSVGElement(null)

  return <Search ref={iconRef} />
}

Set className

By default all icons has base className: SvgIcon.

import { Search } from '@yandex/ui-icons'

export const App = () => {
  return <Search className="MyIcon" />
}

Change color

At now color can be changed with context placement: currentColor.

import { Search } from '@yandex/ui-icons'

export const App = () => {
  return (
    <div style={{ color: 'red' }}>
      <Search />
    </div>
  )
}

Usage (svg)

All icons also available as svg files and can be used inside css or any svg-loaders.

.Icon {
  width: 24px;
  height: 24px;
  background-size: 100%;
  background-image: url("@yandex/ui-icons/Search.svg");
}

License

This project develop under MPL-2.0 license.

FAQs

Package last updated on 02 Aug 2021

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