Added class props to form
This commit is contained in:
parent
c05ce957d9
commit
de5b68318c
1 changed files with 2 additions and 1 deletions
|
|
@ -3,12 +3,13 @@ import type { JSXElement } from 'solid-js'
|
|||
|
||||
interface Props {
|
||||
children: JSXElement
|
||||
class?: string
|
||||
}
|
||||
|
||||
export default (props: Props) => {
|
||||
return (
|
||||
<>
|
||||
<form method="post" enctype="application/x-www-form-urlencoded">
|
||||
<form method="post" enctype="application/x-www-form-urlencoded" class={props.class}>
|
||||
{props.children}
|
||||
</form>
|
||||
</>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue