UNPKG

alinea

Version:
20 lines (18 loc) 505 B
import "../../chunks/chunk-NZLE2WMY.js"; // src/field/path/PathField.ts import { ScalarField } from "alinea/core/field/ScalarField"; import { viewKeys } from "alinea/dashboard/editor/ViewKeys"; var PathField = class extends ScalarField { }; function path(label, options = {}) { if (options.shared) throw new Error("The shared option is not supported on Path fields"); return new PathField({ options: { label, ...options }, view: viewKeys.PathInput }); } export { PathField, path };