Skip to content

Commit 713c392

Browse files
committed
add more external types
Signed-off-by: Winner95 <Winner95@users.noreply.github.com>
1 parent 487d780 commit 713c392

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

fixtures/Types.ts

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,16 @@ export type PolymorphicProps<
1212
? JSX.IntrinsicElements[T]
1313
: {}) & {
1414
as?: T;
15-
};
15+
};
16+
17+
export type TextInputProps = {
18+
value?: string;
19+
defaultValue?: string;
20+
placeholder?: string;
21+
disabled?: boolean;
22+
readOnly?: boolean;
23+
required?: boolean;
24+
maxLength?: number;
25+
minLength?: number;
26+
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
27+
};

0 commit comments

Comments
 (0)