import _ from "lodash";
import { DetailedHTMLProps, FormHTMLAttributes } from "react";
import { twMerge } from "tailwind-merge";
type Props =
DetailedHTMLProps, HTMLFormElement> & {
submitHandler?: (e: React.FormEvent, data: T) => void;
changeHandler?: (e: React.FormEvent, data: T) => void;
};
/**
* # Form Element
* @className twui-form
*/
export default function Form<
T extends { [key: string]: any } = { [key: string]: any }
>({ ...props }: Props) {
const finalProps = _.omit(props, ["submitHandler", "changeHandler"]);
return (
);
}