mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-04-13 16:50:26 -05:00
* Initial * Progress * Form fields fun * Pov * Progress * Some errors * Progress * Progress * Progress * Progress * Comment * Progress * Remove comment * Fix editing * Redundant check
16 lines
298 B
TypeScript
16 lines
298 B
TypeScript
import { Label as ReactAriaLabel } from "react-aria-components";
|
|
|
|
export function SendouLabel({
|
|
children,
|
|
required,
|
|
}: {
|
|
children: React.ReactNode;
|
|
required?: boolean;
|
|
}) {
|
|
return (
|
|
<ReactAriaLabel>
|
|
{children} {required && <span className="text-error">*</span>}
|
|
</ReactAriaLabel>
|
|
);
|
|
}
|