Added form component

This commit is contained in:
Patrick Alvin Alcala 2025-09-02 14:35:39 +08:00
parent bcdbcbd807
commit 3a82f05c75
2 changed files with 20 additions and 0 deletions

View file

View file

@ -0,0 +1,20 @@
import './Form.sass'
import type { JSXElement } from 'solid-js'
import Submit from '../Submit/Submit'
interface Props {
children: JSXElement
edges?: 'curved' | 'rounded' | 'flat'
design?: 'bu-primary' | 'bu-link' | 'bu-info' | 'bu-success' | 'bu-warning' | 'bu-danger' | 'bu-dark' | 'bu-light' | 'bu-text' | 'bu-ghost' | 'bo-primary' | 'bo-secondary' | 'bo-success' | 'bo-danger' | 'bo-warning' | 'bo-info' | 'bo-light' | 'bo-dark' | 'bo-link'
}
export default (props: Props) => {
return (
<>
<form method="post">
{props.children}
<Submit label="Submit" edges={props.edges || 'flat'} design={props.design}></Submit>
</form>
</>
)
}