npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

cov-kendo-form-error-summary

v14.1.0

Published

Displays the validation summary for kendo forms

Downloads

559

Readme

cov-kendo-form-error-summary

A React component that displays a validation error summary for KendoReact forms. When a form has validation errors, the component renders a styled error box listing all current field errors.

NPM

Features

  • Displays all form validation errors in a single summary box
  • Supports a generic VALIDATION_SUMMARY error for form-level messages
  • Optional auto-scroll to the error summary on submit
  • Compatible with React 18 and React 19

Install

npm install --save cov-kendo-form-error-summary

Peer Dependencies

  • react ^18 || ^19

Usage

Basic

import { COVKendoFormErrorSummary } from "cov-kendo-form-error-summary";
import { Form, Field, FormElement } from "@progress/kendo-react-form";

<Form
  onSubmit={handleSubmit}
  initialValues={initialValues}
  render={(formRenderProps) => (
    <FormElement>
      <fieldset className="k-form-fieldset">
        <legend className="k-form-legend">My Form</legend>

        <COVKendoFormErrorSummary formRenderProps={formRenderProps} title="Please correct the following errors" />

        <Field name="email" label="Email" component={FormInput} />
        <Field name="name" label="Name" component={FormInput} />
      </fieldset>
    </FormElement>
  )}
/>;

With Auto-Scroll

When scrollToErrorSummary is true, the component will smoothly scroll the error summary into view after a failed submit. You must also provide a setScrollToErrorSummary callback to reset the flag.

const [scrollToErrorSummary, setScrollToErrorSummary] = React.useState(true);

function onSubmitClick(formValues) {
  if (!formValues.isValid) {
    setScrollToErrorSummary(true);
    return;
  }
  handleSubmit(formValues.values);
}

<Form
  onSubmitClick={onSubmitClick}
  initialValues={initialValues}
  validator={formValidation}
  render={(formRenderProps) => {
    return (
      <FormElement className="k-form row" noValidate={true}>
        <fieldset className="k-form-fieldset col-10">
          <COVKendoFormErrorSummary
            formRenderProps={formRenderProps}
            title={"Enter valid work request information"}
            scrollToErrorSummary={scrollToErrorSummary}
            setScrollToErrorSummary={setScrollToErrorSummary}
          />

      {/* ...fields... */}

        <Button
          id={"workRequestFormSubmit"}
          themeColor={"primary"}
          type={"submit"}
          disabled={submitting || fileUploading}
          iconClass={submitting || fileUploading ? "fa fa-spinner fa-spin" : ""}
        >
          {submitting ? "Sending your request" : "Send your request"}
        </Button>    </FormElement>
  )}
/>;

Props

| Prop | Type | Default | Required | Description | | ------------------------- | ---------- | -------------------------------- | ----------- | ------------------------------------------------------------------------------------------ | | formRenderProps | object | — | Yes | The render props object provided by the KendoReact <Form> component. | | title | string | "Please review your responses" | No | Heading text displayed above the error list. | | scrollToErrorSummary | boolean | false | No | When true, smoothly scrolls the error summary into view. | | setScrollToErrorSummary | function | — | Conditional | State setter to reset the scroll flag. Required when scrollToErrorSummary is true. |

How It Works

The component renders only when all of the following are true:

  1. formRenderProps.valid is false
  2. formRenderProps.allowSubmit is false
  3. formRenderProps.errors is defined

It then iterates over the error keys, filtering out empty values, and renders each error as a list item. A special VALIDATION_SUMMARY key is rendered outside the list for form-level messages.

License

MIT © covnpmjs