@govuk-react/header

Outputs a styled heading tag of provided level, rendering children as contents.

Stats

StarsIssuesVersionUpdatedCreatedSize
@govuk-react/header
0.8.04 months ago4 years agoMinified + gzip package size for @govuk-react/header in KB

Readme

Header

Import

  import Header from '@govuk-react/header';

Usage

This component is DEPRECATED.

Please use the Heading component instead.

Properties

Prop Required Default Type Description
level 1 number Semantic heading level value between 1 and 6
size undefined enum(...Object.keys(HEADING_SIZES) | ...Object.keys(TYPOGRAPHY_SCALE)) Visual size level, accepts:
XLARGE, LARGE, MEDIUM, SMALL, XL, L, M, S
or a numeric size that fits in the GDS font scale list

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.