mirror of
https://github.com/tomru/pfadi-bussle.git
synced 2026-03-03 06:27:11 +01:00
move general componets out from wizard
This commit is contained in:
17
components/input.tsx
Normal file
17
components/input.tsx
Normal 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>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user