backend/src/components/invitation/Invitation.tsx

27 lines
571 B
TypeScript
Raw Normal View History

2023-02-21 10:23:35 +00:00
import { createForm } from "@felte/solid";
import { Component } from "solid-js";
interface Props {}
const Invitation: Component<Props> = (props) => {
const submitHandler = (values: any, context: any) => {
console.log({
caller: "Invitation / submitHandler",
props,
values,
context,
});
};
const { form } = createForm({ onSubmit: submitHandler });
return (
<form use:form>
<label for="database">Database</label>
<input type="url" name="database" required={true} />
</form>
);
};
export default Invitation;