diff --git a/packages/fastui/src/components/FormField.tsx b/packages/fastui/src/components/FormField.tsx index f21e33f2..93b75c8d 100644 --- a/packages/fastui/src/components/FormField.tsx +++ b/packages/fastui/src/components/FormField.tsx @@ -1,6 +1,6 @@ import { FC, useState } from 'react' -import { ClassName, useClassNameGenerator } from '../hooks/className' +import { ClassName, useClassName } from '../hooks/className' interface BaseFormFieldProps { name: string @@ -8,6 +8,7 @@ interface BaseFormFieldProps { required: boolean locked: boolean error?: string + description?: string className?: ClassName } @@ -17,27 +18,29 @@ interface FormFieldInputProps extends BaseFormFieldProps { type: 'FormFieldInput' htmlType?: 'text' | 'date' | 'datetime-local' | 'time' | 'email' | 'url' | 'file' | 'number' initial?: string | number + placeholder?: string } export const FormFieldInputComp: FC = (props) => { - const { className, name, title, required, htmlType, locked } = props + const { name, placeholder, required, htmlType, locked } = props const [value, setValue] = useState(props.initial ?? '') - // TODO placeholder return ( -
-