alinea
Version:
Headless git-based CMS
20 lines (18 loc) • 505 B
JavaScript
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
};