/
githubmirror
/
halo
Обзор
Документация
Войти
/
githubmirror
/
halo
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
ui/src/formkit/inputs/form.ts
39 строк
841 B
John Niang
Move folder console to ui
02 фев 2024, 17:22
02 фев 2024, 17:22
15f7fe2
Код
Авторство
О чём код?
import type { FormKitTypeDefinition } from "@formkit/core"; import { disablesChildren, formInput, forms, message, messages, } from "@formkit/inputs"; /** * Input definition for a form. * @public */ export const form: FormKitTypeDefinition = { /** * The actual schema of the input, or a function that returns the schema. */ schema: formInput("$slots.default", messages(message("$message.value"))), /** * The type of node, can be a list, group, or input. */ type: "group", /** * An array of extra props to accept for this input. */ props: [ "actions", "submit", "submitLabel", "submitAttrs", "submitBehavior", "incompleteMessage", ], forceTypeProp: "form", /** * Additional features that should be added to your input */ features: [forms, disablesChildren], };