Display a summary of form validation errors.
Examples
ds_error_summary(
heading = "There were errors in the form",
htmltools::tags$li(ds_link("Name is required", href = "#name")),
htmltools::tags$li(ds_link("Email is invalid", href = "#email"))
)
#> <ds-error-summary class="ds-error-summary">
#> <h2>There were errors in the form</h2>
#> <ul>
#> <li>
#> <a class="ds-link" href="#name">Name is required</a>
#> </li>
#> <li>
#> <a class="ds-link" href="#email">Email is invalid</a>
#> </li>
#> </ul>
#> </ds-error-summary>