Skip to content

Commit 6fd653e

Browse files
committed
Added input
1 parent 1c9591e commit 6fd653e

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

Diff for: dev/src/components/input/Input.tsx

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import React from 'react'
2+
3+
interface inputParameterType extends React.HTMLAttributes<HTMLInputElement> {
4+
header?: string
5+
}
6+
7+
export default function Input({header, ...props}: inputParameterType) {
8+
return (
9+
<label className='flex flex-col gap-1'>
10+
<span className='font-bold'>
11+
{header}
12+
</span>
13+
<input className='bg-neutral text-neutral-content rounded-lg px-4 py-2' {...props} />
14+
</label>
15+
)
16+
}

0 commit comments

Comments
 (0)