@govuk-frederic/result-count-title
v0.2.0
Published
Renders a ResultCount with value sent as a prop, along with a title sent as children.
Downloads
9
Readme
ResultCountTitle
Import
import ResultCountTitle from '@govuk-frederic/result-count-title';
Usage
Simple
<ResultCountTitle count={3}>Title</ResultCountTitle>
In black with count value 0
<ResultCountTitle count={0} countColor="black" countBackgroundColor="#dee0e2">Title</ResultCountTitle>
Properties
Prop | Required | Default | Type | Description
:--- | :------- | :------ | :--- | :----------
children
| | | node |
`count` | |
| union(number | string) |
countBackgroundColor
| | | string |
`countColor` | |
| string |