sendou.ink/app/components/elements/Label.tsx
Kalle 198010e3e7
Some checks are pending
Tests and checks on push / run-checks-and-tests (push) Waiting to run
Updates translation progress / update-translation-progress-issue (push) Waiting to run
New date picker + VoD form rework (#2055)
* Initial

* Progress

* Form fields fun

* Pov

* Progress

* Some errors

* Progress

* Progress

* Progress

* Progress

* Comment

* Progress

* Remove comment

* Fix editing

* Redundant check
2025-01-26 12:56:19 +02:00

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