Form Layout
Form layout is controlled by form.mode, form.grid, form.groups, form.sections, and root layout.tabs or layout.steps.
Basic form layout
TS
export const usersSchema = {
resource: "users",
form: {
mode: "modal",
width: "3xl",
grid: {
columns: {
base: 1,
md: 2
},
gap: "gap-4"
},
fields: ["name", "email", "roleId", "status"]
}
} as const;Rendering priority
FluiKitForm chooses the first matching layout pattern:
layout.type: "tabs"withlayout.tabs.layout.type: "wizard"withlayout.steps.form.groups.form.sections.- Plain
form.grid.
Form field grid
All plain, grouped, and sectioned fields use gridClassName(form.grid, 1).
TS
form: {
grid: {
columns: {
base: 1,
md: 2,
xl: 3
},
gap: "gap-4"
}
}Form class hook
TS
form: {
className: "space-y-6"
}form.className is merged into the form element.