Files
sendou.ink/app/components/elements/Label.tsx
2026-09-05 15:11:04 +03:00

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>
);
}