container-carousel
Advanced tools
Comparing version 1.1.0 to 1.1.1
{ | ||
"name": "container-carousel", | ||
"author": "rioam2", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"homepage": "https://github.com/rioam2/container-carousel#readme", | ||
"description": "A horizontal carousel container for react components", | ||
"description": "A horizontal carousel container for react components with touchscreen swipe support as well as handlers for traditional desktop peripherals", | ||
"license": "MIT", | ||
@@ -8,0 +8,0 @@ "repository": { |
@@ -1,1 +0,20 @@ | ||
# container-carousel | ||
# container-carousel | ||
This is the source code for the NPM package, 'container-carousel'. This NPM package contains a single exported component named `Carousel`, which renders a carousel - or horizontally spanning slider for content - to the virtual DOM. Children nodes to this component are rendered side-by-side and can be viewed by swiping between them via touch or mouse or using the arrow keys. | ||
#### Usage: | ||
```javascript | ||
import * as React from 'react'; | ||
import { Carousel } from 'container-carousel'; | ||
export const App = props => { | ||
return ( | ||
<Carousel> | ||
<p>Slide 1</p> | ||
<p>Slide 2</p> | ||
<p>Slide 3</p> | ||
</Carousel> | ||
); | ||
}; | ||
``` |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
24730
21
0