Docs

Collection component

A component for rendering collections. expects a path and a render function. the render function receives the collection item as an argument.

Props

NameTypeRequiredDefaultDescription
pathstringthe path of the data in the database.
renderItemfunctionwill be called when the data is available, expects it to return a renderable value. (collectionItem) => ReactNode
lightOverlayboolwill render the edit overlay in alternate colors to support different color schemes.
orderByobjectdefine Firestore's ordering rules
whereobjectdefine Firestore's filtering rules
limitnumberdefine Firestore's limit