e0d05ecfa0
* Add a label “Total” to the count balloon * Update README * Switch to an aria-label, so that we can set a fully translatable string * Update README to make label default clear |
||
---|---|---|
.. | ||
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 |