@govuk-frederic/title-result-count

Renders a ResultCount using count prop provided and a title from children.

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
@govuk-frederic/title-result-count
Minified + gzip package size for @govuk-frederic/title-result-count in KB

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

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.