Skip to content

Commit

Permalink
Update README [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
pboivin authored Oct 8, 2022
1 parent 2da95d8 commit 74a1fe3
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,11 @@ Options passed into `img()` are included as HTML attributes on the element. Some
```php
echo $image
->render()
->img(['!width' => false, '!height' => false]);
->img([
'class' => 'w-full',
'alt' => 'Lorem ipsum',
'!src' => false,
]);
```

<details>
Expand All @@ -287,8 +291,9 @@ echo $image
<img
class="lazyload w-full"
alt="Lorem ipsum"
src="/images/cache/01.jpg/de828e8798017be816f79e131e41dcc9.gif"
data-src="/images/source/01.jpg"
width="3840"
height="2160"
>
```
</details>
Expand Down

0 comments on commit 74a1fe3

Please sign in to comment.