@govuk-frederic/result-count

Renders children, expected to be a number, styled and with customisable color and background-color.

Stats

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

Readme

ResultCount

Import

  import ResultCount from '@govuk-frederic/result-count';

Usage

Simple

<ResultCount>0</ResultCount>

Overriding background and text colours

<ResultCount backgroundColor="#6f777b" color="white">000</ResultCount>

Properties

Prop Required Default Type Description
backgroundColor GREY_1 string
children undefined node
color WHITE 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.