0.2.0 • Published 5 years ago
@govuk-frederic/title-result-count v0.2.0
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 |