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

@badrap/material-symbols-omnibus

Package Overview
Dependencies
Maintainers
2
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@badrap/material-symbols-omnibus

> [!NOTE] > Importing this package pulls in data for _all_ Material Symbol icons. You're probably better off using something like [marella/material-symbols](https://github.com/marella/material-symbols).

  • 0.0.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
10
increased by42.86%
Maintainers
2
Weekly downloads
 
Created
Source

@badrap/material-symbols-omnibus

[!NOTE] Importing this package pulls in data for all Material Symbol icons. You're probably better off using something like marella/material-symbols.

A library to resolve a Material Symbol icons name to an SVG path.

The icons are the outlined variant with the 48px optical size. The icon can either be unfilled or filled.

Installation

npm i @badrap/material-symbols-omnibus

Usage

import { resolveMaterialSymbol } from "@badrap/material-symbols-omnibus";

export function MaterialSymbol(props: { name: string; filled?: boolean }) {
  const data = resolveMaterialSymbol(props);
  if (!data) {
    return null;
  }
  return (
    <svg width={data.width} height={data.height} viewBox={data.viewBox}>
      <path d={data.path} />
    </svg>
  );
}

License

Material Symbols are available under the Apache License Version 2.0. Therefore this package is also available under the same license.

FAQs

Package last updated on 29 Apr 2024

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