2018-05-25 19:34:35 +00:00
ActivityCard
============
2018-06-28 13:52:45 +00:00
A card designed for use in the activity panel. This is a very structured component, which expects at minimum a label and content. It can optionally also include a date, actions, an image, and a dropdown menu.
2018-05-25 19:34:35 +00:00
## How to use:
```jsx
import ActivityCard from 'components/activity-card';
render: function() {
return (
< ActivityCard
2018-07-16 13:53:38 +00:00
title="Insight"
icon={ < Gridicon icon = "search" / > }
date="2018-07-10T00:00:00Z"
2018-05-25 19:34:35 +00:00
actions={ [ < a href = "/" > Action link< / a > , < a href = "/" > Action link 2< / a > ] }
>
Insight content goes in this area here. It will probably be a couple of lines long and may
include an accompanying image. We might consider color-coding the icon for quicker
scanning.
< / ActivityCard >
);
}
```
## Props
2018-07-16 13:53:38 +00:00
* `title` : A title for this card (required).
* `subtitle` : An element rendered right under the title.
2018-05-25 19:34:35 +00:00
* `children` : Content used in the body of the action card (required).
* `actions` : A list of links or buttons shown in the footer of the card.
* `date` : The timestamp associated with this activity.
2018-07-16 13:53:38 +00:00
* `icon` : An icon or avatar used to identify this activity. Defaults to Gridicon "notice-outline".
* `unread` : If this prop is present, the card has a small red bubble indicating an "unread" item. Defaults to false.