@chayns-components/gallery
Version:
A set of beautiful React components for developing your own applications with chayns.
31 lines (30 loc) • 786 B
TypeScript
import { type InternalFileItem } from '@chayns-components/core';
import { FC } from 'react';
export type GalleryItemProps = {
/**
* Images and videos which should be displayed
*/
fileItem: InternalFileItem;
/**
* Whether images and videos can be edited
*/
isEditMode: boolean;
/**
* Function to be executed when a file is deleted
*/
handleDeleteFile: (id?: string) => void;
/**
* The ratio of the image
*/
ratio?: number;
/**
* Length of the uploaded files
*/
remainingItemsLength?: number;
/**
* Function to be executed if a file should be opened
*/
onClick: (file: InternalFileItem) => void;
};
declare const GalleryItem: FC<GalleryItemProps>;
export default GalleryItem;