1.3.0 • Published 3 years ago

wmk-image v1.3.0

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

wmk-image

Image Utility component for Gatsby projects

Installation

npm install --save wmk-image

Usage

<WmkImage
  image={Img} // an instance of the Img class (from within library)
  crop="crop-size" // add crop sizes
  style={styleObject}
  className="class-string"
/>

Adding additional crops

1. Query the full original image

2. Query the gatsby data for an alternate size

3. Instantiate image class

4. Use addCrop(string,Img) method to add a size

1.3.0

3 years ago

1.2.0

3 years ago

1.1.3

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.16

3 years ago

1.1.2

3 years ago

1.0.15

3 years ago

1.0.14

3 years ago

1.0.13

3 years ago

1.0.12

3 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago