sendou.ink/app/components/elements/Label.tsx
Kalle fef1ffc955
Design refresh + a bunch of stuff (#2864)
Co-authored-by: hfcRed <hfcred@gmx.net>
2026-03-19 17:51:42 +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>
);
}