Skip to content

Commit

Permalink
docs: update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
andreiio committed Oct 31, 2023
1 parent 337d1f0 commit 2fb398e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,17 @@ composer require andreiio/blade-iconoir

Icons can be used a self-closing Blade components which will be compiled to SVG icons:
```blade
<x-iconoir-bookmark-empty />
<x-iconoir-regular-bookmark />
```

You can also pass classes to your icon components:
```blade
<x-iconoir-mail class="w-6 h-6 text-gray-500 fill-current" />
<x-iconoir-regular-mail class="w-6 h-6 text-gray-500 fill-current" />
```

And even use inline styles:
```blade
<x-iconoir-warning-triangle-outline style="fill: #F00" />
<x-iconoir-solid-warning-triangle style="fill: #F00" />
```

### Raw SVG Icons
Expand All @@ -53,7 +53,7 @@ php artisan vendor:publish --tag=blade-iconoir --force
Then use them in your views like:

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

### Blade Icons
Expand Down

0 comments on commit 2fb398e

Please sign in to comment.