New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

no-mui-icons-two-tone

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

no-mui-icons-two-tone

Two tone Material UI Icons repackaged without MUI dependencies

latest
Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
2.1K
6303.03%
Maintainers
1
Weekly downloads
 
Created
Source

no-mui-icons

Icons from the Material UI library that are not dependent on Material UI code.

They can be used in any React application with any UI framework. I'm personally a fan of Radix UI and Qwik but they will work with any React compatible framework.

Usage

The icons are distributed in five packages corresponding to the five icon styles.

npm install no-mui-icons-filled
npm install no-mui-icons-outlined
npm install no-mui-icons-rounded
npm install no-mui-icons-sharp
npm install no-mui-icons-two-tone

Then import and use them like you would any other React component.

import { ThumbUpFilledIcon } from 'no-mui-icons-filled';
import { EmailSharpIcon } from 'no-mui-icons-sharp';

function UseIcons() {
  return (
    <div>
      <ThumbUpFilledIcon />

      <EmailSharpIcon
        className={styles.iconClass}
        aria-label="Send email"
        role="button"
      />
    </div>
  );
}

All attributes passed to the icon are passed through to the <svg /> element. No additional markup is rendered, but additional CSS classes are added. Described below.

Styling

Every icon accepts a custom className attribute that is passed to the <svg /> element.

<EmailSharpIcon className="sendEmailIcon" />
.sendEmailIcon {
  width: 40px;
  height: 40px;
  fill: blue;
  cursor: pointer;
}

Additionally every icon has three pre-defined CSS classes that can be used to customize all icons, all icons of a particular style, or all instances of that particular icon.

  • no-mui-icon is added to every icon.
  • no-mui-[style]-icon where [style] is the appropriate icon style: filled, outlined, sharp, rounded, or two-tone.
  • no-mui-[icon-name]-[style]-icon where [icon-name] is the kebab-case name of the icon and [style] is one of the previously mentioned styles such as no-mui-thumb-up-filled-icon or no-mui-email-sharp-icon.
<EmailSharpIcon />
.no-mui-icon {
  width: 40px;
  height: 40px;
}

.no-mui-filled-icon {
  fill: blue;
}

.no-mui-email-sharp-filled-icon {
  fill: green;
}

Browse icons

Search and browse all icons and view each in the different styles at no-mui-icons.com.

Browse app screenshot

Contributing

Pull Requests to the build tools and browse app are welcome. To build, clone the repository, pull the submodule, and run npm run build at the project root.

The icons are pulled directly from github.com/mui/material-ui via a submodule. If you find no-mui-icons is out-of-date, create an issue and I'll make a new build and republish.

License

The packaging, build tools, and browse app are available through the MIT license. The underlying icons are also licensed and redistributed under the MIT license.

Keywords

no-mui-icons

FAQs

Package last updated on 14 May 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