embla-carousel-react
Advanced tools
Comparing version 0.0.9 to 0.0.10
@@ -6,2 +6,3 @@ import EmblaCarousel, { UserOptions } from 'embla-carousel'; | ||
children?: ReactNode; | ||
className?: string; | ||
options?: UserOptions; | ||
@@ -15,2 +16,3 @@ emblaRef: (embla: EmblaCarousel) => void; | ||
render(): React.ReactElement<{ | ||
className: string | undefined; | ||
ref: React.RefObject<HTMLElement>; | ||
@@ -17,0 +19,0 @@ style: { |
@@ -172,2 +172,3 @@ module.exports = | ||
return react_1["default"].createElement(this.props.htmlTagName, { | ||
className: this.props.className, | ||
ref: this.container, | ||
@@ -174,0 +175,0 @@ style: { |
{ | ||
"name": "embla-carousel-react", | ||
"version": "0.0.9", | ||
"version": "0.0.10", | ||
"author": "David Cetinkaya", | ||
@@ -5,0 +5,0 @@ "private": false, |
@@ -30,2 +30,3 @@ <br /> | ||
- [Usage](#usage) | ||
- [Props](#props) | ||
- [License](#license) | ||
@@ -35,3 +36,3 @@ | ||
> Try it here on the [Demo Page](https://davidcetinkaya.github.io/embla-carousel) or [CodeSandbox](https://codesandbox.io/s/embla-carousel-loop-false-oyols) ✨. | ||
> Try it on the [Demo Page](https://davidcetinkaya.github.io/embla-carousel) or [CodeSandbox](https://codesandbox.io/s/embla-carousel-react-znjzv) ✨. | ||
@@ -98,5 +99,12 @@ ## Implementations | ||
## Props | ||
- **`htmlTagName`** - Any valid HTML tag like `div` or `ul` etc. | ||
- **`className`** - Applied to top the top level wrapper. | ||
- **`emblaRed`** - Like a ref function to access the Embla instance in parent component. | ||
- **`options`** - Same [options](https://github.com/davidcetinkaya/embla-carousel#options) as the vanilla JS Embla package. | ||
## License | ||
Embla is [MIT licensed](./LICENSE). | ||
Embla is [MIT licensed](./LICENSE). | ||
Copyright © 2019-present, David Cetinkaya. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15503
192
108