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
- Host: GitHub
- URL: https://github.com/hoodoo-software/mdi
- Owner: hoodoo-software
- License: mit
- Created: 2022-06-16T02:46:53.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2024-03-04T01:07:22.000Z (over 2 years ago)
- Last Synced: 2025-03-04T23:37:04.792Z (over 1 year ago)
- Topics: icons, material-design, material-design-icons, mdi, ruby, ruby-on-rails, svg, svg-icons
- Language: Ruby
- Homepage:
- Size: 11.2 MB
- Stars: 0
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: MIT-LICENSE
Awesome Lists containing this project
README
# mdi
[](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