mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-10-21 18:02:45 -05:00
Move app to apps/web-react in pnpm workspace layout
This commit is contained in:
16
apps/web-react/app/components/elements/FieldError.tsx
Normal file
16
apps/web-react/app/components/elements/FieldError.tsx
Normal file
@@ -0,0 +1,16 @@
|
||||
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>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user