Added class props to form

This commit is contained in:
Patrick Alvin Alcala 2025-09-24 14:03:36 +08:00
parent c05ce957d9
commit de5b68318c

View file

@ -3,12 +3,13 @@ import type { JSXElement } from 'solid-js'
interface Props { interface Props {
children: JSXElement children: JSXElement
class?: string
} }
export default (props: Props) => { export default (props: Props) => {
return ( return (
<> <>
<form method="post" enctype="application/x-www-form-urlencoded"> <form method="post" enctype="application/x-www-form-urlencoded" class={props.class}>
{props.children} {props.children}
</form> </form>
</> </>