ShadcnUI.Components.Forms.ErrorSummary (shadcn_ui v1.0.0)

Copy Markdown View Source

Form-level error overview with ordinary fragment links.

The caller owns announcement, focus, scrolling, and navigation policy. The component adds no alert role, focus target, autofocus, or script by default.

Summary

Functions

Renders ordered escaped form messages.

Functions

error_summary(assigns)

Renders ordered escaped form messages.

A binary entry is form-level text. A {control_id, message} tuple or a map with :control_id and :message creates an ordinary fragment link.

Attributes

  • id (:string) (required)
  • heading (:string) (required)
  • errors (:list) (required)
  • class (:any) - Defaults to nil.
  • Global attributes are accepted.