sendou.ink/app/components/elements/Label.tsx
2025-12-30 16:34:59 +02:00

17 lines
370 B
TypeScript

import { Label as ReactAriaLabel } from "react-aria-components";
import styles from "./Label.module.css";
export function SendouLabel({
children,
required,
}: {
children: React.ReactNode;
required?: boolean;
}) {
return (
<ReactAriaLabel className={styles.label}>
{children} {required ? <span className="text-error">*</span> : null}
</ReactAriaLabel>
);
}