mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-03-21 18:04:39 -05:00
17 lines
370 B
TypeScript
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>
|
|
);
|
|
}
|