-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Marinich Maxim
authored and
Marinich Maxim
committed
Dec 2, 2022
1 parent
8ff5093
commit bc51d35
Showing
7 changed files
with
74 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
```javascript | ||
import React from 'react'; | ||
import AliceCarousel from 'react-alice-carousel'; | ||
import 'react-alice-carousel/lib/alice-carousel.css'; | ||
|
||
const responsive = { | ||
0: { | ||
items: 1 | ||
}, | ||
568: { | ||
items: 2 | ||
}, | ||
1024: { | ||
items: 3, | ||
itemsFit: 'contain' | ||
}, | ||
}; | ||
|
||
const items = [ | ||
<div className="item" data-value="1">1</div>, | ||
<div className="item" data-value="2">2</div>, | ||
]; | ||
|
||
const Carousel = () => ( | ||
<AliceCarousel | ||
mouseTracking | ||
items={items} | ||
responsive={responsive} | ||
/> | ||
); | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters