astro-reactive-form/packages/form/components/Errors.astro
2022-10-28 12:41:32 +02:00

17 lines
245 B
Text

---
import type { ValidationError } from '@astro-reactive/common';
export interface Props {
errors: ValidationError[];
}
const { errors = [] } = Astro.props;
---
{
errors.map((error) => (
<li>
{error.error} {error.limit}
</li>
))
}