@govuk-react/related-items

Container which expects to receive a heading and list and styles them accordingly.

Stats

StarsIssuesVersionUpdatedCreatedSize
@govuk-react/related-items
0.9.112 days ago3 years agoMinified + gzip package size for @govuk-react/related-items in KB

Readme

RelatedItems

Import

  import RelatedItems from '@govuk-react/related-items';

Usage

Simple

import { H3, UnorderedList, ListItem, Link } from 'govuk-react';

<RelatedItems>
  <H3>Example heading</H3>
  <UnorderedList listStyleType="none">
    <ListItem>
      <Link href="https://example.com">Link A</Link>
    </ListItem>
  </UnorderedList>
</RelatedItems>

References:

TODO:

  • Replace CSS selectors with imported components

Properties

Prop Required Default Type Description
children true `````` node Related items content

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.