Giter VIP home page Giter VIP logo

blade-iconoir's Introduction

Blade Iconoir

A package to easily make use of Iconoir in your Laravel Blade views.

Latest Version on Packagist Software License Build Status Style CI Total Downloads

For a full list of available icons see the resources/svg directory or search

Requirements

  • PHP 7.4 or higher
  • Laravel 8.0 or higher

Install

composer require andreiio/blade-iconoir

Usage

Icons can be used a self-closing Blade components which will be compiled to SVG icons:

<x-iconoir-bookmark />

You can also pass classes to your icon components:

<x-iconoir-mail class="w-6 h-6 text-gray-500 fill-current" />

And even use inline styles:

<x-iconoir-warning-triangle-solid style="fill: #F00" />

Raw SVG Icons

If you want to use the raw SVG icons as assets, you can publish them using:

php artisan vendor:publish --tag=blade-iconoir --force

Then use them in your views like:

<img src="{{ asset('vendor/blade-iconoir/bicycle.svg') }}" width="10" height="10"/>

Blade Icons

Blade Iconoir uses Blade Icons under the hood. Please refer to the Blade Icons readme for additional functionality.

Testing

composer test

Credits

License

This project is licensed under the MIT License (MIT) – see the LICENSE file for details.

blade-iconoir's People

Contributors

amrography avatar andreiio avatar dependabot[bot] avatar github-actions[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

retter241

blade-iconoir's Issues

Confused naming with regular and solid

Hi,
thanks for your package.

I had some issues with the naming. I was searching for some "vegan" icons through https://blade-ui-kit.com/blade-icons. I found a neat icon in this package. The website states the name "vegan", but the icon component in Blade couldn't find the icon. As I was looking up the issue in the source code, I found out, that I need to call the icon with "regular-vegan".

That's a bit confusing as the Blade UI Icon and the Iconic website named the icon just "vegan". Unfortunately
, I couldn't find any hint in the Readme of this package about that particular naming scheme.

Also, there is an issue with the naming scheme for solid icons. On the Iconic website the "solid" term it suffixed to the name. As on your implementation it is prefixed. Besides, the solid icons are not listed on the Blade UI Icon website search.

Best, Arne

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.