0.2.0 • Published 5 years ago

@govuk-frederic/title-result-count v0.2.0

Weekly downloads
5
License
MIT
Repository
-
Last release
5 years ago

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

PropRequiredDefaultTypeDescription
children | node
count | union(number | string)
countBackgroundColor | string
countColor | string