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 |
||
---|---|---|
.. | ||
README.md | ||
index.js | ||
style.scss |
README.md
Count
Display a number with a styled border
Usage
import Count from 'components/count';
export default function myCount() {
return (
<Count count={ 33 } />
);
}
Props
- Marks required props
Name | Type | Default | Description |
---|---|---|---|
count * |
number |
none | Value of the number to be displayed |
label |
string |
"Total {props.count}" | A translated label with the number in context, used for screen readers |