Skip to content

Collection Item

brandonk1234 edited this page Dec 5, 2016 · 4 revisions

CollectionItem

A collection item Similarly too a list item takes in a range of different elements. A Collection element usually consist of a content item and an action item underneath.

Props

  • className - This prop must be a string.
  • contentComponent - This prop must be a component.
  • actionsComponent - This prop must be a component.

Example

<CollectionItem 
    className="course-collection-item" 
    contentComponent={<CollectionItemContent 
       title="The Title" 
       body="this body this body this body this body" 
    />} 
   actionsComponent={<CollectionItemAction />} 
/>

Related