github
106 of 116 branches covered (91.38%)
Branch coverage included in aggregate %.
801 of 817 relevant lines covered (98.04%)
13.46 hits per line
| 1 |
import { ReactNode } from 'react';
|
1✔ |
| 2 |
|
1✔ |
| 3 |
interface Props {
|
1✔ |
| 4 |
children?: ReactNode; |
1✔ |
| 5 |
} |
1✔ |
| 6 |
|
1✔ |
| 7 |
export function ValidationError({ children }: Props) {
|
|
| 8 |
return (
|
5✔ |
| 9 |
<span className="validation" role="alert"> |
5✔ |
| 10 |
{children}
|
5✔ |
| 11 |
</span> |
5✔ |
| 12 |
); |
5✔ |
| 13 |
} |
5✔ |