UNPKG

@firecms/core

Version:

Awesome Firebase/Firestore-based headless open-source CMS

20 lines (19 loc) 847 B
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>): import("react/jsx-runtime").JSX.Element;