Added form component
This commit is contained in:
parent
bcdbcbd807
commit
3a82f05c75
2 changed files with 20 additions and 0 deletions
0
fwt/components/Form/Form.sass
Normal file
0
fwt/components/Form/Form.sass
Normal file
20
fwt/components/Form/Form.tsx
Normal file
20
fwt/components/Form/Form.tsx
Normal 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>
|
||||||
|
</>
|
||||||
|
)
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue