mirror of
https://github.com/koreanbots/core.git
synced 2025-12-16 22:30:23 +00:00
* chore: remove quotes * types: make servers nullable * types: make before value nullable * feat: handle null value * chore: update api docs --------- Co-authored-by: Eunwoo Choi <choi@eunwoo.dev>
20 lines
468 B
TypeScript
20 lines
468 B
TypeScript
import { Field } from 'formik'
|
|
|
|
const Input: React.FC<InputProps> = ({ name, placeholder, ...props }) => {
|
|
return <Field
|
|
{...props}
|
|
name={name}
|
|
className={'border-grey-light relative px-3 w-full h-10 text-black dark:text-white dark:bg-very-black border dark:border-transparent rounded outline-none'}
|
|
placeholder={placeholder}
|
|
/>
|
|
}
|
|
|
|
interface InputProps {
|
|
name: string
|
|
placeholder?: string
|
|
warning?: boolean
|
|
[key: string]: unknown
|
|
}
|
|
|
|
export default Input
|