X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/952aa1c7170d4b24951f40ed66b5f19a53d11daf..91bf126bc097ea203c1c081adc187e7567367a35:/src/components/workflow-inputs-form/workflow-input.tsx

diff --git a/src/components/workflow-inputs-form/workflow-input.tsx b/src/components/workflow-inputs-form/workflow-input.tsx
new file mode 100644
index 00000000..3a15d158
--- /dev/null
+++ b/src/components/workflow-inputs-form/workflow-input.tsx
@@ -0,0 +1,18 @@
+// Copyright (C) The Arvados Authors. All rights reserved.
+//
+// SPDX-License-Identifier: AGPL-3.0
+
+import * as React from 'react';
+import { CommandInputParameter } from '~/models/workflow';
+import { TextField } from '@material-ui/core';
+import { required } from '~/components/workflow-inputs-form/validators';
+
+export interface WorkflowInputProps {
+    input: CommandInputParameter;
+}
+export const WorkflowInput = ({ input }: WorkflowInputProps) =>
+    <TextField
+        label={`${input.label || input.id}${required(input)() ? '*' : ''}`}
+        name={input.id}
+        helperText={input.doc}
+        fullWidth />;
\ No newline at end of file
