mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-03-26 20:34:43 -05:00
16 lines
293 B
TypeScript
16 lines
293 B
TypeScript
import { FieldError as ReactAriaFieldError } from "react-aria-components";
|
|
|
|
export function SendouFieldError({
|
|
children,
|
|
id,
|
|
}: {
|
|
children?: React.ReactNode;
|
|
id?: string;
|
|
}) {
|
|
return (
|
|
<ReactAriaFieldError className="error-message" id={id}>
|
|
{children}
|
|
</ReactAriaFieldError>
|
|
);
|
|
}
|