diff --git a/src/pages/sections/FeedbackForm.tsx b/src/pages/sections/FeedbackForm.tsx
index 0ced647..ec31dac 100644
--- a/src/pages/sections/FeedbackForm.tsx
+++ b/src/pages/sections/FeedbackForm.tsx
@@ -51,6 +51,26 @@ export function OptionalTag() {
);
}
+/* On a field the send button waits for. */
+export function RequiredTag() {
+ return (
+
+ Required
+
+ );
+}
+
+/* Under a message box: how many more characters it needs, until it
+ has them (the send button stays off until then). */
+export function MinimumNote({ length, min }: { length: number; min: number }) {
+ if (length >= min) return null;
+ return (
+
+ {length === 0 ? `At least ${min} characters` : `${min - length} more character${min - length === 1 ? "" : "s"} needed`}
+
+ );
+}
+
export function FieldError({ id, children }) {
if (!children) return null;
return (
@@ -356,6 +376,7 @@ export default function FeedbackForm({ fixedType }: { fixedType?: string } = {})
className="text-base font-semibold text-body"
>
{request ? "Your request" : "Tell us more"}
+
{request @@ -381,6 +402,7 @@ export default function FeedbackForm({ fixedType }: { fixedType?: string } = {}) />
- Choose what it's about, give it a name, write at least a sentence and give an email address to send. + Choose what it's about, give it a name, write at least {MIN_MESSAGE} characters and give an email address to send.
)}