move general componets out from wizard

This commit is contained in:
Thomas Ruoff
2020-10-07 23:11:07 +02:00
parent db37b76a6e
commit f78b8ea772
7 changed files with 4 additions and 4 deletions

17
components/input.tsx Normal file
View File

@@ -0,0 +1,17 @@
import React from 'react'
import InputWrapper from './inputWrapper'
interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
label: string
}
export default function Input(props: InputProps) {
const { label, required, type = 'text', ...rest } = props
return (
<InputWrapper label={label} required={required}>
<input type={type} required={required} className="input-text" {...rest} />
</InputWrapper>
)
}