@selfcommunity/react-ui
Version:
React UI Components to integrate a Community created with SelfCommunity Platform.
20 lines (19 loc) • 664 B
TypeScript
import { MouseEvent, TouchEvent } from 'react';
import { PhotoProviderBase } from 'react-photo-view/dist/types';
import { DataType } from '../../types/lightbox';
/**
* Overrides/extends the styles applied to the component.
* @default null
*/
export interface BaseLightboxProps extends PhotoProviderBase {
className?: string;
images: DataType[];
index?: number;
onIndexChange?: (index: number) => void;
visible?: boolean;
onClose?: (evt?: MouseEvent | TouchEvent) => void;
afterClose?: () => void;
toolbarButtons?: JSX.Element;
}
declare const BaseLightbox: (props: BaseLightboxProps) => JSX.Element;
export default BaseLightbox;