We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1c9591e commit 6fd653eCopy full SHA for 6fd653e
dev/src/components/input/Input.tsx
@@ -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