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

@konturio/default-icons

Package Overview
Dependencies
Maintainers
2
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@konturio/default-icons

This module contain React components which contain SVG element.

  • 2.0.0-alpha.28
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
104
increased by18.18%
Maintainers
2
Weekly downloads
 
Created
Source

Default icons

This module contain React components which contain SVG element.

SVG elements based on Material design icons and exported with Figma design tool from icon font.

How to add new icon

  • Create SVG icon and export it
  • Open SVG file with text editor or IDE
  • Copy content
  • Create {NewName}Icon.tsx file in src/icons directory
  • Past content from SVG file to {NewName}Icon.tsx
  • and bring to the following form:
import React, { FC } from 'react';

const CloseIcon: FC = (props: React.SVGProps<SVGSVGElement>) => (
  <svg width="14" height="14" viewBox="0 0 14 14" {...props}>
    <path
      d="M13.9844 1.42188L8.40625 7L13.9844 12.5781L12.5781 13.9844L7 8.40625L1.42188 13.9844L0.015625 12.5781L5.59375 7L0.015625 1.42188L1.42188 0.015625L7 5.59375L12.5781 0.015625L13.9844 1.42188Z"
      fill="currentColor"
    />
  </svg>
);

export default React.memo(CloseIcon);

Alternatives

Material icons

You can get all icons from external packages as Material icons

React Icons

Include popular icons in your React projects easly with react-icons, which utilizes ES6 imports that allows you to include only the icons that your project is using.

SVGR

It can help you to transform SVGs into React components.

You can choose the way you prefer:

  • SVGR can be run from the CLI
  • SVGR can be used as a webpack loader, this way you can import your SVG directly as a React Component

FAQs

Package last updated on 31 Aug 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