aboutsummaryrefslogtreecommitdiff
path: root/packages/anastasis-webui/src/components/fields/TextInput.tsx
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2021-11-10 15:43:15 -0300
committerSebastian <sebasjm@gmail.com>2021-11-10 15:43:15 -0300
commitea13e19ece2deeb4ab9731373f68b1dcf5b6fa88 (patch)
treec568777c803cf710693544640b18ce9714d4cb63 /packages/anastasis-webui/src/components/fields/TextInput.tsx
parentf9dedc06d6825640c9f1aca462779757cb4194e4 (diff)
file upload
Diffstat (limited to 'packages/anastasis-webui/src/components/fields/TextInput.tsx')
-rw-r--r--packages/anastasis-webui/src/components/fields/TextInput.tsx2
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/anastasis-webui/src/components/fields/TextInput.tsx b/packages/anastasis-webui/src/components/fields/TextInput.tsx
index fd0c658ed..4f417730c 100644
--- a/packages/anastasis-webui/src/components/fields/TextInput.tsx
+++ b/packages/anastasis-webui/src/components/fields/TextInput.tsx
@@ -4,6 +4,7 @@ import { useLayoutEffect, useRef, useState } from "preact/hooks";
export interface TextInputProps {
label: string;
grabFocus?: boolean;
+ disabled?: boolean;
error?: string;
placeholder?: string;
tooltip?: string;
@@ -33,6 +34,7 @@ export function TextInput(props: TextInputProps): VNode {
<div class="control has-icons-right">
<input
value={value}
+ disabled={props.disabled}
placeholder={props.placeholder}
class={showError ? "input is-danger" : "input"}
onInput={(e) => {