mirror of
https://github.com/tomru/pfadi-bussle.git
synced 2026-03-03 22:47:15 +01:00
25 lines
494 B
TypeScript
25 lines
494 B
TypeScript
import React from 'react'
|
|
import Required from './required'
|
|
|
|
export default function Input(props: {
|
|
label: string
|
|
name?: string
|
|
required: boolean
|
|
children: React.ReactNode
|
|
}) {
|
|
const { label, name, required, children } = props
|
|
|
|
return (
|
|
<>
|
|
<div className="fsw">
|
|
<div className="fs">
|
|
<label className="flabel" htmlFor={name}>
|
|
{label} {required && <Required />}
|
|
</label>
|
|
{children}
|
|
</div>
|
|
</div>
|
|
</>
|
|
)
|
|
}
|