diff --git a/src/components/Form/Text/Text.tsx b/src/components/Form/Text/Text.tsx index ba277d8..30941e1 100644 --- a/src/components/Form/Text/Text.tsx +++ b/src/components/Form/Text/Text.tsx @@ -1,4 +1,4 @@ -import { HTMLAttributes, HTMLInputAutoCompleteAttribute, HTMLInputTypeAttribute, ReactElement } from 'react'; +import { HTMLInputAutoCompleteAttribute, HTMLInputTypeAttribute, InputHTMLAttributes, ReactElement } from 'react'; import { RegisterOptions, useFormContext } from 'react-hook-form'; import FormError from '@/components/Form/Error'; @@ -6,12 +6,12 @@ import FormError from '@/components/Form/Error'; import styles from '../form.module.css'; type TextInputProps = { - title: string; + title?: string; name: string; options?: RegisterOptions; type?: HTMLInputTypeAttribute; autoComplete?: HTMLInputAutoCompleteAttribute; -} & HTMLAttributes; +} & InputHTMLAttributes; const TextInput = ({ name, @@ -25,7 +25,7 @@ const TextInput = ({ return (