Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/danieldiekmeier/preact-flickity-component
A Flickity component for Preact
https://github.com/danieldiekmeier/preact-flickity-component
Last synced: about 1 month ago
JSON representation
A Flickity component for Preact
- Host: GitHub
- URL: https://github.com/danieldiekmeier/preact-flickity-component
- Owner: danieldiekmeier
- License: gpl-3.0
- Created: 2018-03-20T10:27:36.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-03-20T17:05:22.000Z (over 6 years ago)
- Last Synced: 2024-09-28T06:41:51.817Z (about 2 months ago)
- Language: JavaScript
- Homepage:
- Size: 17.6 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Preact Flickity Component
This is an adaption of [@theolampert's](https://github.com/theolampert) [React Flickity Component](https://github.com/theolampert/react-flickity-component) that is compatible to [Preact](preactjs.com).
It doesn't use PropTypes, Portals or any of that fancy React stuff.
I built it because I needed to mount a Flickity Slider, and I'm afraid that I will have to do it again at some point in my career.
## Usage
```js
import { h, Component } from 'preact'
import Carousel from 'preact-flickity-component'export default class CarouselContainer extends Component {
render (props, state) {
const flickityOptions: {
pageDots: false,
wrapAround: true
}return
1
2
3
}
}
```## License Information:
[GPLv3](https://www.gnu.org/licenses/gpl-3.0.html)
Flickity may be used in commercial projects and applications with the one-time purchase of a commercial license.
http://flickity.metafizzy.co/license.html