@laurelis/react-simple-gallery
Version:
Simple image gallery for React.js
22 lines (18 loc) • 732 B
TypeScript
import * as react_jsx_runtime from 'react/jsx-runtime';
import { ImgHTMLAttributes, ReactElement } from 'react';
interface ImageProps extends ImgHTMLAttributes<HTMLImageElement> {
key: string | number;
src: string;
className?: string;
}
declare function Image({ ...rest }: ImageProps): react_jsx_runtime.JSX.Element;
interface ImageGalleryProps {
children: ReactElement<ImageProps>[];
lazyLoading?: boolean;
keyboard?: boolean;
arrowButtons?: boolean;
swipeable?: boolean;
className?: string;
}
declare function ImageGallery({ children, lazyLoading, keyboard, arrowButtons, swipeable, className, }: ImageGalleryProps): react_jsx_runtime.JSX.Element;
export { Image, ImageGallery as default };