mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-03-21 18:04:39 -05:00
17 lines
340 B
TypeScript
17 lines
340 B
TypeScript
import { FieldError as ReactAriaFieldError } from "react-aria-components";
|
|
import styles from "../FormMessage.module.css";
|
|
|
|
export function SendouFieldError({
|
|
children,
|
|
id,
|
|
}: {
|
|
children?: React.ReactNode;
|
|
id?: string;
|
|
}) {
|
|
return (
|
|
<ReactAriaFieldError className={styles.error} id={id}>
|
|
{children}
|
|
</ReactAriaFieldError>
|
|
);
|
|
}
|