Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@govuk-frederic/result-count

steve_sims21MIT0.2.0

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

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