@govuk-frederic/title-result-count
v0.2.0
Published
Renders a ResultCount using count prop provided and a title from children.
Downloads
8
Readme
TitleResultCount
Import
import TitleResultCount from '@govuk-frederic/title-result-count';
Usage
Simple
<TitleResultCount count={3}>
Title Title Title
</TitleResultCount>
Counter title with value 0 and override text and background colour.
<TitleResultCount count={0} countColor="black" countBackgroundColor="#dee0e2">
Title Title Title
</TitleResultCount>
Properties
Prop | Required | Default | Type | Description
:--- | :------- | :------ | :--- | :----------
children
| | | node |
`count` | |
| union(number | string) |
countBackgroundColor
| | | string |
`countColor` | |
| string |