@govuk-react/error-summary
TypeScript icon, indicating that this package has built-in type declarations

0.10.6 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @govuk-react/error-summary

Weekly Downloads

3,450

Version

0.10.6

License

MIT

Unpacked Size

22.2 kB

Total Files

12

Last publish

Collaborators

  • loque-
  • steve_sims
  • petelockey
  • penx
  • marksy