Skip to content

Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.

fix: add is optional param to input - cussin cursor

Brad Barbin81f4ab7ae1c2
diff --git a/packages/form/src/components/Input.tsx b/packages/form/src/components/Input.tsx
index c0e13c3773..cc561d49c0 100644
--- a/packages/form/src/components/Input.tsx
+++ b/packages/form/src/components/Input.tsx
@@ -12,12 +12,13 @@ import {
import type { ReactNode } from "react";
import { forwardRef } from "react";
import { useField } from "../hooks";
-import { ValidationBehaviorOptions } from "src/internal/getInputProps";
+import type { ValidationBehaviorOptions } from "src/internal/getInputProps";
type FormInputProps = InputProps & {
name: string;
label?: ReactNode;
isConfigured?: boolean;
+ isOptional?: boolean;
isRequired?: boolean;
helperText?: string;
prefix?: string;
@@ -32,6 +33,7 @@ const Input = forwardRef<HTMLInputElement, FormInputProps>(
name,
label,
isConfigured,
+ isOptional,
isRequired,
helperText,
prefix,
@@ -48,6 +50,7 @@ const Input = forwardRef<HTMLInputElement, FormInputProps>(
{label && (
<FormLabel
htmlFor={name}
+ isOptional={isOptional}
isConfigured={isConfigured}
onConfigure={onConfigure}
>