@govuk-frederic/result-count-title

Renders a ResultCount with value sent as a prop, along with a title sent as children.

Stats

StarsIssuesVersionUpdatedCreatedSize
@govuk-frederic/result-count-title
0.2.03 years ago3 years agoMinified + gzip package size for @govuk-frederic/result-count-title in KB

Readme

ResultCountTitle

Import

  import ResultCountTitle from '@govuk-frederic/result-count-title';

Usage

Simple

<ResultCountTitle count={3}>Title</ResultCountTitle>

In black with count value 0

<ResultCountTitle count={0} countColor="black" countBackgroundColor="#dee0e2">Title</ResultCountTitle>

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.