2018-05-21 00:12:40 +00:00
|
|
|
Count
|
|
|
|
===
|
|
|
|
|
|
|
|
Display a number with a styled border
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
```jsx
|
|
|
|
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
|
2018-06-01 14:39:48 +00:00
|
|
|
`label` | `string` | "Total {props.count}" | A translated label with the number in context, used for screen readers
|