openreplay/frontend/app/components/ui/Form/Form.tsx
Shekar Siri 2ed5cac986
Webpack upgrade and dependency cleanup (#523)
* change(ui) - webpack update
* change(ui) - api optimize and other fixes
2022-06-03 16:47:38 +02:00

34 lines
No EOL
600 B
TypeScript

import React from 'react';
interface Props {
children: React.ReactNode;
[x: string]: any
}
interface FormFieldProps {
children: React.ReactNode;
[x: string]: any
}
function FormField (props: FormFieldProps) {
const { children, ...rest } = props;
return (
<div {...rest} className="flex flex-col mb-4 form-field">
{children}
</div>
);
}
function Form(props: Props) {
const { children, ...rest } = props;
return (
<form {...rest}>
{children}
</form>
);
}
Form.Field = FormField;
export default Form;