UNPKG

@selfcommunity/react-ui

Version:

React UI Components to integrate a Community created with SelfCommunity Platform.

34 lines (33 loc) 684 B
import { SCMediaType } from '@selfcommunity/types/src/types'; export interface LightboxProps { /** * Images objs * @default [] */ medias: SCMediaType[]; /** * Obj index * @default 0 */ index: number; /** * Toolbar * @default undefined */ toolbarButtons?: JSX.Element; /** * Handles on close * @default () => void */ onClose: () => void; /** * Handles on index change * @default undefined */ onIndexChange?: (index: number) => void; /** * Any other properties */ [p: string]: any; } export default function Lightbox(props: LightboxProps): JSX.Element;