An open API service indexing awesome lists of open source software.

https://github.com/hoodoo-software/mdi

A view helper for Ruby on Rails that renders inline SVG icons from the Material Design Icons collection with over 7,000 icons
https://github.com/hoodoo-software/mdi

icons material-design material-design-icons mdi ruby ruby-on-rails svg svg-icons

Last synced: 2 months ago
JSON representation

A view helper for Ruby on Rails that renders inline SVG icons from the Material Design Icons collection with over 7,000 icons

Awesome Lists containing this project

README

          

# mdi

[![Gem Version](https://badge.fury.io/rb/mdi.svg)](https://badge.fury.io/rb/mdi)

A view helper for Ruby on Rails that renders inline SVG icons from the [Material Design Icons][materialdesignicons_link] collection with over 7,000 icons

## Usage

mdi_icon helper that will render inline svg tag into your view:

```ruby
mdi_icon(Mdi::LanguageRuby, width: 72, height: 72, color: "#d02d32")
```

```svg

```

Collection of all available icons can be found in the [Mdi][mdi_models_link] namespace.

## Material Design Icons

* View at [all available icons][materialdesignicons_link]
* [Changelog Guide][materialdesignicons_changelog_link]

## Installation
Add this line to your application's Gemfile:

```ruby
gem 'mdi'
```

And then execute:
```bash
$ bundle
```

Or install it yourself as:
```bash
$ gem install mdi
```

## License
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).

[materialdesignicons_link]: https://pictogrammers.com/library/mdi/
[mdi_models_link]: https://rubydoc.info/github/hoodoo-software/mdi/Mdi
[materialdesignicons_changelog_link]: https://pictogrammers.com/docs/library/mdi/releases/changelog