@not-govuk/warning-text

A component to warn the user of something important.

Usage no npm install needed!

<script type="module">
  import notGovukWarningText from 'https://cdn.skypack.dev/@not-govuk/warning-text';
</script>

README

Warning Text

A component to warn the user of something important.

Using this package

First install the package into your project:

npm install -S @not-govuk/warning-text

Then use it in your code as follows:

import React, { createElement as h } from 'react';
import WarningText from '@not-govuk/warning-text';

export const MyComponent = props => (
  <WarningText>
    You can be fined up to £5,000 if you do not register.
  </WarningText>
);

export default MyComponent;

Working on this package

Before working on this package you must install its dependencies using the following command:

pnpm install

Testing

npm test

Building

npm run build

Clean-up

npm run clean