Skip to content

Commit 74a1fe3

Browse files
authored
Update README [skip ci]
1 parent 2da95d8 commit 74a1fe3

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,11 @@ Options passed into `img()` are included as HTML attributes on the element. Some
277277
```php
278278
echo $image
279279
->render()
280-
->img(['!width' => false, '!height' => false]);
280+
->img([
281+
'class' => 'w-full',
282+
'alt' => 'Lorem ipsum',
283+
'!src' => false,
284+
]);
281285
```
282286

283287
<details>
@@ -287,8 +291,9 @@ echo $image
287291
<img
288292
class="lazyload w-full"
289293
alt="Lorem ipsum"
290-
src="/images/cache/01.jpg/de828e8798017be816f79e131e41dcc9.gif"
291294
data-src="/images/source/01.jpg"
295+
width="3840"
296+
height="2160"
292297
>
293298
```
294299
</details>

0 commit comments

Comments
 (0)