d36511479e
* Switch all components to default exports This ensures we can read all components for documentation generation (plus, standardizing is good) * Add documentation to component file * Fix table exports * Move readme docs into inline docs Includes updating new props, adding prop shapes * Add doc-generation scripts to pull exported component docs into folder * Remove key propType, causing react special-keys warning * Fix proptype * Update incorrect comment * Remove template import, we can just use string concat * Fix typo, update docs |
||
---|---|---|
.. | ||
test | ||
README.md | ||
index.js | ||
style.scss |
README.md
Card
A basic card component with a header. The header can contain a title (required), an action (optional), and an EllipsisMenu
menu (optional).
How to use:
import Card from 'components/card';
render: function() {
return (
<Card title={ "Store Performance" }>
<p>Your stuff in a Card</p>
</Card>
);
}
Props
title
(required): The title to use for this card.action
: One "primary" action for this card, appears in the card headerclassName
: You can add classes to the card container.menu
: An EllipsisMenu, with filters used to control the content visible in this card