Skip to content

A module adding an Icon node that expose the Material UI icon font in Noodl.

License

Notifications You must be signed in to change notification settings

NoodlJesper/noodl-material-icons-module

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

noodl-material-icons-module

Material UI Icons module for Noodl

This module adds the node "Icon | Material UI" that expose the Material UI icon font in Noodl as a simple to use node. It also sets up the project with a link to stylesheets for all styles of the material icon font. Every Icon node adds only a span-tag which makes it easy to use these nodes together with text nodes.

Noodl Material UI icon font animation example

Install

Copy the folder project/noodl_modules/mui-icons-module into your-project-folder/noodl_modules.

Properties

Property Value
Icon style enum solid | outlined | round | sharp | two-tone
Icon string write the icon name, see icons available at Material Design's icon docs
Icon size number font size in pixels
Icon color color set the font color (if two-tone is choosen the hex color is translated into a css filters instead)

Two-Tone style

Two-tone style does not work with the color css property so behind the scenes the color choosen is instead translated into a css filter. This is not visible in Noodl, rather the user selects the color they want and do not need to care about if it is Two-tone styled or not.

Removing unused icon styles

If you want to remove unused icon font styles (for example you have slow load times in your application) you would go into to your-project-folder/noodl_modules/mui-icons-module/manifest.json and modify the link tag's href attribute. Default href calls css?family=Material+Icons|Material+Icons+Outlined|Material+Icons+Two+Tone|Material+Icons+Round|Material+Icons+Sharp. You can remove the unused fonts here and those won't download anymore on app start.

About

A module adding an Icon node that expose the Material UI icon font in Noodl.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published