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

mdi-svg

Package Overview
Dependencies
Maintainers
2
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mdi-svg

Community Material Design Icons as SVG path data

  • 1.1.303
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
14
decreased by-48.15%
Maintainers
2
Weekly downloads
 
Created
Source

mdi-svg

Community Material Design Icons as SVG path data.

Contains helper functions for rendering to SVG strings and React components.

Patch number corresponds to the number of commits in MaterialDesign@master. This package auto-updates to latest MaterialDesign, daily.

Special thanks to Austin Andrews for managing Material Design Icons.

Installation

npm install mdi-svg

Usage

import AccountIconData from 'mdi-svg/d/account';
import { toPathString, toSvgString, toPath, toSvg } from 'mdi-svg'

// '<path d="..." />'
export const AccountIconPathString = toPathString(AccountIconData)

// '<svg xmlns="..." ...><path d="..." /></svg>'
export const AccountIconString = toSvgString(AccountIconData)

import React from 'react'

// react component <AccountIconPath />
export const AccountIconPath = toPath(React)(AccountIconData)

// react component <AccountIcon />
export const AccountIcon = toSvg(React)(AccountIconData)

Build

make init

Keywords

FAQs

Package last updated on 09 Jan 2017

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