Update text input component

This commit is contained in:
adilallo
2026-02-04 11:29:51 -07:00
parent d8fa525514
commit 255f16477c
20 changed files with 589 additions and 949 deletions
+29
View File
@@ -0,0 +1,29 @@
import React from "react";
import TextInput from "../../app/components/TextInput";
import { componentTestSuite } from "../utils/componentTestSuite";
type TextInputProps = React.ComponentProps<typeof TextInput>;
componentTestSuite<TextInputProps>({
component: TextInput,
name: "TextInput",
props: {
label: "Test text input",
} as TextInputProps,
requiredProps: ["label"],
optionalProps: {
placeholder: "Enter value",
},
primaryRole: "textbox",
testCases: {
renders: true,
accessibility: true,
keyboardNavigation: true,
disabledState: true,
errorState: true,
},
states: {
disabledProps: { disabled: true },
errorProps: { error: true },
},
});