Update input components
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import type React from "react";
|
||||
import type { ChangeEventHandler } from "react";
|
||||
import type { ChangeEventHandler, InputHTMLAttributes } from "react";
|
||||
|
||||
|
||||
export interface TextInputProps {
|
||||
@@ -164,10 +164,8 @@ export interface RadioListProps {
|
||||
}
|
||||
|
||||
|
||||
export interface DateInputProps {
|
||||
id?: string;
|
||||
className?: string;
|
||||
defaultValue?: Date;
|
||||
value?: Date;
|
||||
onChange?: (newValue: Date) => void;
|
||||
export interface DateInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "value" | "onChange" | "step">{
|
||||
step?: number;
|
||||
value: Date | undefined;
|
||||
onChange: (newValue: Date | undefined) => void;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user