Files
Shortumation/web/src/components/InputWrapper.tsx
T
2021-11-02 21:45:15 -04:00

13 lines
346 B
TypeScript

import { CSSProperties, PropsWithChildren } from "react";
export interface Props {
label: string;
style?: CSSProperties;
}
export default function InputWrapper({label, children, style={}}: PropsWithChildren<Props>) {
return <div className="input-wrapper" style={style}>
<label>{label}</label>
{children}
</div>
}