mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-18 22:11:43 +01:00
feat(Form): new component (#439)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
This commit is contained in:
13
src/runtime/types/form.d.ts
vendored
Normal file
13
src/runtime/types/form.d.ts
vendored
Normal 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
|
||||
}
|
||||
1
src/runtime/types/index.d.ts
vendored
1
src/runtime/types/index.d.ts
vendored
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user