feat(Form): new component (#439)

Co-authored-by: Benjamin Canac <canacb1@gmail.com>
This commit is contained in:
Romain Hamel
2023-07-31 15:22:14 +02:00
committed by GitHub
parent c37a927b4e
commit a3aba1abad
22 changed files with 945 additions and 17 deletions

13
src/runtime/types/form.d.ts vendored Normal file
View File

@@ -0,0 +1,13 @@
export interface FormError {
path: string
message: string
}
export interface Form<T> {
async validate(): T
}
export interface FormEvent {
type: 'blur' // | 'change' | 'focus'
path: string
}

View File

@@ -4,6 +4,7 @@ export * from './button'
export * from './clipboard'
export * from './command-palette'
export * from './dropdown'
export * from './form'
export * from './link'
export * from './notification'
export * from './popper'