UNPKG

@firecms/core

Version:

Awesome Firebase/Firestore-based headless open-source CMS

21 lines (20 loc) 852 B
import React from "react"; import { CollectionSize, Entity, EntityCollection } from "../../types"; export type EntityCardProps<M extends Record<string, any> = any> = { entity: Entity<M>; collection: EntityCollection<M>; onClick?: (entity: Entity<M>) => void; selected?: boolean; highlighted?: boolean; onSelectionChange?: (entity: Entity<M>, selected: boolean) => void; selectionEnabled?: boolean; /** * Size of the card - affects checkbox styling */ size?: CollectionSize; }; /** * Card component for displaying an entity in a grid view. * Shows thumbnail, title, and preview properties. */ export declare function EntityCard<M extends Record<string, any> = any>({ entity, collection, onClick, selected, highlighted, onSelectionChange, selectionEnabled, size }: EntityCardProps<M>): React.JSX.Element;