Skip to content

Commit ca8c4f6

Browse files
committed
refactor: simplify ExampleCustomInputProps by removing unused props
- Removed unnecessary props from ExampleCustomInputProps to streamline the component's interface. - Improved code clarity and maintainability by focusing on essential properties.
1 parent fc984d1 commit ca8c4f6

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

docs-site/src/examples/ts/customInput.tsx

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,6 @@ type ExampleCustomInputProps = {
22
className?: string;
33
value?: string;
44
onClick?: () => void;
5-
onBlur?: (event: React.FocusEvent<HTMLElement>) => void;
6-
onChange?: (
7-
...args: Parameters<Required<DatePickerProps>["onChangeRaw"]>
8-
) => void;
9-
onFocus?: (event: React.FocusEvent<HTMLElement>) => void;
10-
onKeyDown?: (event: React.KeyboardEvent<HTMLElement>) => void;
11-
id?: ComponentProps<typeof DatePicker>["id"];
12-
name?: ComponentProps<typeof DatePicker>["name"];
13-
form?: ComponentProps<typeof DatePicker>["form"];
14-
autoFocus?: ComponentProps<typeof DatePicker>["autoFocus"];
15-
placeholder?: ComponentProps<typeof DatePicker>["placeholderText"];
16-
disabled?: ComponentProps<typeof DatePicker>["disabled"];
17-
autoComplete?: ComponentProps<typeof DatePicker>["autoComplete"];
18-
title?: ComponentProps<typeof DatePicker>["title"];
19-
readOnly?: ComponentProps<typeof DatePicker>["readOnly"];
20-
required?: ComponentProps<typeof DatePicker>["required"];
21-
tabIndex?: ComponentProps<typeof DatePicker>["tabIndex"];
22-
"aria-describedby"?: ComponentProps<typeof DatePicker>["ariaDescribedBy"];
23-
"aria-invalid"?: ComponentProps<typeof DatePicker>["ariaInvalid"];
24-
"aria-labelledby"?: ComponentProps<typeof DatePicker>["ariaLabelledBy"];
255
};
266

277
const CustomInput = () => {

0 commit comments

Comments
 (0)