@mitcsutt/kiln-forms
Version:
Kiln forms: typed React forms on TanStack Form, in component or JSON schema mode, rendered through kiln-ui
12 lines (11 loc) • 719 B
TypeScript
import type { LayoutComponent } from '../../kit/types.js';
import type { DefaultLayoutKey } from '../core/types.js';
/** The default schema layout registry (§9.0 table): every `layout` key → its §9 component. */
export declare const defaultLayouts: Readonly<Record<DefaultLayoutKey, LayoutComponent>>;
/**
* Layouts that are `FieldScope`s and accept static names: only these get
* `scopeNames` from the schema analysis, so counts, reveal and step validation work before mount.
*/
export declare const SCOPED_LAYOUTS: ReadonlySet<string>;
/** Whether `component` is one of the built-in layouts (they never receive `node` / `form`). */
export declare function isDefaultLayout(component: LayoutComponent): boolean;