Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaolin authored Aug 22, 2023
1 parent fecc3a8 commit e456451
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,17 @@ React Image Gallery requires **React 16.0.0 or later.**
npm install react-image-gallery
```

### Style import (with webpack)
### Style import options

```
# SCSS
# scss file import
@import "~react-image-gallery/styles/scss/image-gallery.scss";
# CSS
# css file import
@import "~react-image-gallery/styles/css/image-gallery.css";
# js file import (using webpack)
import "react-image-gallery/styles/css/image-gallery.css";
```

### Example
Expand All @@ -46,7 +49,8 @@ Need more example? See [`example/app.js`](https://github.com/xiaolin/react-image

```js
import ImageGallery from "react-image-gallery";
import "react-image-gallery/styles/css/image-gallery.css";
// import stylesheet if you're not already using CSS @import
import "react-image-gallery/styles/css/image-gallery.css";

const images = [
{
Expand Down

0 comments on commit e456451

Please sign in to comment.