Scheduling infrastructure for absolutely everyone.
Adds hint to input
zomars8ae5b6850410
diff --git a/packages/ui/form/fields.tsx b/packages/ui/form/fields.tsxindex db3b0e4136a..a54d83aa8b8 100644--- a/packages/ui/form/fields.tsx+++ b/packages/ui/form/fields.tsx@@ -42,6 +42,7 @@ export function InputLeading(props: JSX.IntrinsicElements["div"]) {type InputFieldProps = {label?: ReactNode;+ hint?: ReactNode;addOnLeading?: ReactNode;} & React.ComponentProps<typeof Input> & {labelProps?: React.ComponentProps<typeof Label>;@@ -59,6 +60,7 @@ const InputField = forwardRef<HTMLInputElement, InputFieldProps>(function InputF: "",className,addOnLeading,+ hint,...passThrough} = props;return (@@ -82,6 +84,7 @@ const InputField = forwardRef<HTMLInputElement, InputFieldProps>(function InputF) : (<Input id={id} placeholder={placeholder} className={className} {...passThrough} ref={ref} />)}+ {hint}{methods?.formState?.errors[props.name] && (<Alert className="mt-1" severity="error" message={methods.formState.errors[props.name].message} />)}@@ -192,6 +195,7 @@ const PlainForm = <T extends FieldValues>(props: FormProps<T>, ref: Ref<HTMLForm<formref={ref}onSubmit={(event) => {+ event.preventDefault();form.handleSubmit(handleSubmit)(event).catch((err) => {