core/components/Form/Input.tsx
SKINMAKER b421d1ab64
chore: apply prettier (#637)
* chore: apply prettier

* chore: edit ready comment

* chore: move ts comment
2023-11-29 22:04:33 +09:00

24 lines
489 B
TypeScript

import { Field } from 'formik'
const Input: React.FC<InputProps> = ({ name, placeholder, ...props }) => {
return (
<Field
{...props}
name={name}
className={
'border-grey-light relative h-10 w-full rounded border px-3 text-black outline-none dark:border-transparent dark:bg-very-black dark:text-white'
}
placeholder={placeholder}
/>
)
}
interface InputProps {
name: string
placeholder?: string
warning?: boolean
[key: string]: unknown
}
export default Input