diff --git a/src/index.jsx b/src/index.jsx
index c24d0ed..39c1505 100644
--- a/src/index.jsx
+++ b/src/index.jsx
@@ -333,12 +333,13 @@ class LazyLoad extends Component {
height,
children,
placeholder,
+ className,
classNamePrefix,
style
} = this.props;
return (
-
+
{this.visible ? (
children
) : placeholder ? (
@@ -355,6 +356,7 @@ class LazyLoad extends Component {
}
LazyLoad.propTypes = {
+ className: PropTypes.string,
classNamePrefix: PropTypes.string,
once: PropTypes.bool,
height: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
@@ -375,6 +377,7 @@ LazyLoad.propTypes = {
};
LazyLoad.defaultProps = {
+ className: '',
classNamePrefix: 'lazyload',
once: false,
offset: 0,