mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-25 04:37:13 -05:00
18 lines
334 B
TypeScript
18 lines
334 B
TypeScript
import styles from "./Label.module.css";
|
|
|
|
export function SendouLabel({
|
|
children,
|
|
required,
|
|
htmlFor,
|
|
}: {
|
|
children: React.ReactNode;
|
|
required?: boolean;
|
|
htmlFor?: string;
|
|
}) {
|
|
return (
|
|
<label className={styles.label} htmlFor={htmlFor}>
|
|
{children} {required ? <span className="text-error">*</span> : null}
|
|
</label>
|
|
);
|
|
}
|