Skip to content

Commit

Permalink
Added className and style attributes to OptimizedImage
Browse files Browse the repository at this point in the history
  • Loading branch information
luca-vogels committed Jan 8, 2024
1 parent 679a966 commit 4a0ca86
Show file tree
Hide file tree
Showing 3 changed files with 277 additions and 142 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# lup-images
Node module for optimizing images in web applications.

## Example
## Example Server
```javascript
const { ImagesRequestHandler } = require('lup-images');
const express = require('express');
Expand All @@ -17,3 +17,7 @@ app.use('/images/*', ImagesRequestHandler());

app.listen();
```
## Example JSX
```jsx
<OptimizedImage src="https://picsum.photos/200/300" width={200} height={300} />
```
Loading

0 comments on commit 4a0ca86

Please sign in to comment.