@govuk-react/error-summary

Notice used to display form errors to user - also includes anchors to jump to relevant form sections.

Stats

StarsIssuesVersionUpdatedCreatedSize
@govuk-react/error-summary
0.10.011 days ago3 years agoMinified + gzip package size for @govuk-react/error-summary in KB

Readme

ErrorSummary

Import

  import ErrorSummary from '@govuk-react/error-summary';

Use this component at the top of a page to summarise any errors a user has made.

Properties

Prop Required Default Type Description
description undefined string Optional description of the errors
errors [] { targetName?: string; text?: string; }[] Array of errors with text and target element name to scroll into view when clicked
heading There is a problem string Heading text
onHandleErrorClick undefined (targetName: string) => void onClick function to scroll the target element into view

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.